def _dump_to_table(dictionary, table_uri, key_name, value_name):
    """A function to take a flat dictionary and dump to a CSV
        table.

        dictionary - a flat python dictionary of key/value pairs
        table_uri - the URI of a CSV output table
        key_name - a string to use for the key headings
        value_name - a string to use for the value headings

        returns nothing"""
    with open(table_uri, 'wb') as table_file:
        table_file.write('%s, %s\n' % (key_name, value_name))
        for key, value in dictionary.iteritems():
            table_file.write('%s, %s\n' % (key, value))
