'return data representation for pickled object'

def __getstate__(self):

    d = {}
    for (k, v) in self.__dict__.items():
        if (not self.__transient_attrs__.has_key(k)):
            d[k] = v
    return d
