Add pep8, pylint, pyflakes to travis build; improve code quality; Convert to support python3, add pyflakes