def parse_value(key, value):
    """Parse value as comma-delimited list if default value for it is list"""
    default = OPTIONS.get(key)
    if isinstance(default, collections.Iterable):
        if not isinstance(default, six.string_types):
            return [item.strip()
                    for item in value.split(',')]
    return value
Parse value as comma-delimited list if default value for it is list