Fix pep8 issues
fix pyflakes issues
fix pylint issues