added singleton class for python 2 migrating to 3
Merge branch 'singleton'