def __init__(self, user=None, to=None, type=None): Presence.__init__(self, to, type) if user is not None: self["from"] = user.full()