Fixed continue_processing() for python 3.4
Merge pull request #4 from mdevaev/main-thread-logic

Fixed continue_processing() for python 3.4