exporting of user data working
pyflakes fixes
remove unused code
more pep8
more pyflakes & pep8