'get key id for session AP'

def sessionGenerate(self):

    session_id = Refactor.generateSessionID()
    while (session_id in self.SessionsAP.keys()):
        session_id = Refactor.generateSessionID()
    self.FormPopup.Ftemplates.session = session_id
    return session_id
