make code mostly pep8 compilant