Fix pep8 warnings and errors.