fix #4

- replaced threading with multiprocessing
- moved handle_timeout to the proper location
fix pep8 compliance
fix differences between Queue.Queue and multiprocessing.Queue
Merge pull request #6 from pmrowla/master

fix #4