def yesno(val=0):
    """A tiny helper to simplify case incensitive yes/no configuration"""
    if str(val).lower() in ['0', 'disable', 'off', 'false', 'no']:
        return 0
    elif str(val).lower() in ['1', 'enable', 'on', 'true', 'yes']:
        return 1
    else:
        return None