Add simple implementation of python based singleton