Removed headnotes
Added flakes command to setup.py
Flakes
Fixed flakes and readded missing Thread import
Merge pull request #113 from codeinn/cleanup

Cleanup