class Deck(object):
    _deck = None

def __new__(cls, *a, **k):
    if not cls._deck:
        cls._deck = object.__new__(cls, *a, **k)
return cls._deck
How to use have only one instance of a class in python