Fixing pep8 compliance and pyflake checks.