fixed pep8/pyflakes errors and enabled flake8 in travis-ci
fixed remaining pep8 errors
Merge pull request #52 from edx/flake8-fixerupper

fixed pep8/pyflakes errors and enabled flake8 in travis-ci