add pep8 and pyflakes checks - refs #1