def __get__(self, obj, type=None):
    if (obj is None):
        raise AttributeError('Can only be accessed via an instance')
def __get__(self, obj, type=None):
    if (obj is None):
        raise AttributeError('Can only be accessed via an instance')