Fix typos; Fix pep8 and pyflakes3k errors