pep8 compliance and usage of requests.codes