pep8 preliminaries.hopefully not too many error indentation logical errors generated....