simplejson is still preferred over json in py3
PEP 8 corrections
urlencode in Python 3 can handle unicode