def __init__(self, pykcs11, session):
if not isinstance(pykcs11, PyKCS11Lib):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if not isinstance(session, LowLevel.CK_SESSION_HANDLE):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>self.pykcs11 = pykcs11<EOL>self.session = session<EOL>
:param pykcs11: PyKCS11 library object
:type pykcs11: PyKCS11Lib
:param session: session handle
:type session: instance of :class:`CK_SESSION_HANDLE`