python 2 to 3 and pep-8 in api, auth and rsa