update some formatting according to pep8