def unquote(value):
    """ remove quotes if needed """
    if isinstance(value, str) and len(value) > 1 and value[0] == '"' and value[
        -1] == '"':
        return value[1:-1]
    return value
