Somewhat fixed code style to PEP-8 and fixed duplicate thread results.
Merge pull request #26 from gentoomen/thread-search-fixes

Somewhat fixed code style to PEP-8 and fixed duplicate thread results.