'Get a previously generated session.
@param uid: Unique ID of the session.
@type uid: L{bytes}.
@raise: L{KeyError} if the session is not found.'

def getSession(self, uid):

    return self.sessions[uid]
