add the endablethread as function and not as argument
add test class to test streams
added requirements.txt and .travis.yml
removed simplejson

this project only supports python 2.7 and 3.x
so json is always there