fix for python3 compatibility
pep8 cleanups
fix append not defined bug.
added test for Data.keypairs
add flake8 check for better coding style.
Merge branch 'travis_pep8_check'