Merge pull request #695 from wpoely86/settmpdir

/tmp mounted with noexec gives trouble
main.py is now pep8 friendly!