pep8 and style changes, added requests