text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  class Singleton(object):
      def __new__(cls, *args, **kargs):
          if not hasattr(cls, "_instance"):
              cls._instance = super(Singleton, cls).__new__(cls)
          return cls._instance
  