Fix code for pep8 compatibility