I tried to convert dictionary with key=string and value=int to PyObject and got this exception: 