pep8 and catch http error