def tuple_list_to_lua(tuple_list):
    """Given a list of tuples, return a lua table of tables"""

    def table(it):
        return "{" + ",".join(map(str, it)) + "}"

    return table(table(t) for t in tuple_list)