fixed utf-8 encode on json request which broke python 3 support
fixed python 3 incompatibility
Merge pull request #4 from Rolinh/master

Fixed python 3 incompatibilities