Using event.is_set to be compatible with Python2.6

Fixes #227