'Get the sessions linked to this object.
Args:
sessid (int, optional): Specify a given session by
session id.
Returns:
sessions (list): A list of Session objects. If `sessid`
is given, this is a list with one (or zero) elements.'

def get(self, sessid=None):

    global _SESSIONS
    if (not _SESSIONS):
        from evennia.server.sessionhandler import SESSIONS as _SESSIONS
    if sessid:
        return make_iter(_SESSIONS.session_from_player(self.player, sessid))
    else:
        return _SESSIONS.sessions_from_player(self.player)
