Convert zfs bool to python bool

def from_bool(value):
    '''
    Convert zfs bool to python bool
    '''
    if value in ['on', 'yes']:
        value = True
    elif value in ['off', 'no']:
        value = False
    elif value == 'none':
        value = None

    return value