'Turn the string ``value`` into a python object.'

def filter_value_to_python(self, value, field_name, filters, filter_expr, filter_type):

    value = string_to_python(value)
    if ((filter_type in (u'in', u'range')) and len(value)):
        if hasattr(filters, u'getlist'):
            value = []
            for part in filters.getlist(filter_expr):
                value.extend(part.split(u','))
        else:
            value = value.split(u',')
    return value
