linting code and conforming to pep8