singleton pattern for python
