def __init__(self, userid, auth_methods, ptags=None, session_expiry=None):
    self.userid = userid
    self.auth_methods = auth_methods
    if (ptags is None):
        ptags = []
    self.ptags = ptags
    self.session_expiry = session_expiry
def __init__(self, userid, auth_methods, ptags=None, session_expiry=None):
    self.userid = userid
    self.auth_methods = auth_methods
    if (ptags is None):
        ptags = []
    self.ptags = ptags
    self.session_expiry = session_expiry