py3 urlencode

Edited with github