pep8 error line too big. Perhaps address all these line length issues of this module together in one PR