def __init__(self, args, output=sys.stdout, input=sys.stdin, password=None):
        self.args = args
        self.file = args.file
        self.output = output
        self.input = input

        try:
            self.gpg_agent = gpg_agent.GpgAgent()
        except __HOLE__:
            self.gpg_agent = None

        self.gpg_agent_password_id = 'sdb_m:{file_fingerprint}'.format(
            file_fingerprint=hashlib.md5(force_bytes(self.file)).hexdigest()
        )

        self.password = password
        if not self.password:
            self.password = self.get_master_password()
dataset/ETHPy150Open gavinwahl/sdb/sdb/passwords.py/InteractiveSession.__init__