A dictionary in python has some pre-requisites for it's keys, see: https://wiki.python.org/moin/DictionaryKeys
The solution is to convert the arguments from various types into hasheable type, like string.