fixed some pep8/pyflake style issues