Tried to fix ValueError: signal only works in main thread
Merge pull request #30 from wreckah/master

Tried to fix ValueError: signal only works in main thread