def strtobool(x):
    return x.lower() in ("true", "yes", "1", "y")
def strtobool(x):
    try:
        b = x.lower() in ("true", "yes", "1", "y")
        return b
    except AttributeError:
        return False
    except NameError
        return False
Add some failsafes to strtobool
Add some failsafes to strtobool
