@user.setter
def user(self, value):
    if (not isinstance(value, Text)):
        message = "Expected instance of '%s' but got value '%s' of type '%s'"
        message %= (Text, value, type(value))
        raise TypeError(message)
    self._user = value
@user.setter
def user(self, value):
    if (not isinstance(value, Text)):
        message = "Expected instance of '%s' but got value '%s' of type '%s'"
        message %= (Text, value, type(value))
        raise TypeError(message)
    self._user = value