'Return a dictionary with filter query parameters which are used when
listing networks, security groups, etc.
:param      filters: Dict of filter names and filter values
:type       filters: ``dict``
:rtype:     ``dict``'

def _build_filters(self, filters):

    filter_entries = {}
    for (filter_idx, filter_data) in enumerate(filters.items()):
        filter_idx += 1
        (filter_name, filter_values) = filter_data
        filter_key = ('Filter.%s.Name' % filter_idx)
        filter_entries[filter_key] = filter_name
        if isinstance(filter_values, list):
            for (value_idx, value) in enumerate(filter_values):
                value_idx += 1
                value_key = ('Filter.%s.Value.%s' % (filter_idx, value_idx))
                filter_entries[value_key] = value
        else:
            value_key = ('Filter.%s.Value.1' % filter_idx)
            filter_entries[value_key] = filter_values
    return filter_entries
