python 2.6 compatibility and flake8 compliance
add flake8 tests to travis