add tests
python 3 support
test threading
test exception
Merge pull request #2 from tlevine/master

Tests for thready