def format_table(table):
    """
    Convert a list of tuples into a pretty tabulated table.
    :param table: List of tuples, each one will be a row of the printed table
    """
    col_width = [max(len(x) for x in col) for col in zip(*table)]
    result = ""
    for line in table:
        result += "%s\n" % ((" " * 3).join("{:{}}".format(x, col_width[i]) for i, x in enumerate(line)))
    return result