bug fix for unflushed buffers
fixed pep8 errors and bugfix #5
fixed error of threads handling when nmap scan is ran async
Merge branch 'issue5'