def _clone(self):
    cls = self.__class__
    q = cls.__new__(cls)
    q.__dict__ = self.__dict__.copy()
    return q
def _clone(self):
    cls = self.__class__
    q = cls.__new__(cls)
    q.__dict__ = self.__dict__.copy()
    return q