fixed some bugs in the singletonstreamer on module imports in python 2