def get_passphrase(prompt="Enter passphrase: ", defaultPass=None):
    passwd = getpass(prompt)
    while not len(passwd):
        if defaultPass:
            passwd = defaultPass
        else:
            passwd = getpass("  You must enter a passphrase: ")
    return passwd
If a module is given, wrap it into a ModuleDecidingAgent before evaluating it.
dataset/ETHPy150Open ryran/ravshello/rav-notify.py/get_passphrase--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/twoplayergames/tasks/gomokutask.py/GomokuTask.f