def write_table(table, header, handle):
    """General function for saving tables.

    :arg list table: Table content.
    :arg str header: Table header.
    :arg stream handle: Open writable handle to the output file.
    """
    if header:
        handle.write(header)
    if table:
        for i in table:
            handle.write('{}\n'.format('\t'.join(map(str, i))))
