return '%s@%s:/%s' % (self.uid, self.remote, self.directory)


class AnotherClass:

    def __init__(self, user_obj):
        self.user = user_obj


class YetAnotherClass:
    pass
python: Accessing an instance variable using a name containing a variable