updated with autopep8 format and style guide corrections