def __init__(self, username, password, session=None, send_cbt=True):
if ntlm is None:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>self.domain, self.username = username.split('<STR_LIT:\\>', <NUM_LIT:1>)<EOL><DEDENT>except ValueError:<EOL><INDENT>self.username = username<EOL>self.domain = '<STR_LIT>'<EOL><DEDENT>if self.domain:<EOL><INDENT>self.domain = self.domain.upper()<EOL><DEDENT>self.password = password<EOL>self.send_cbt = send_cbt<EOL>self.session_security = None<EOL>
Create an authentication handler for NTLM over HTTP.

        :param str username: Username in 'domain\\username' format
        :param str password: Password
        :param str session: Unused. Kept for backwards-compatibility.
        :param bool send_cbt: Will send the channel bindings over a HTTPS channel (Default: True)