def prepare_rows(table):
num_columns = max(len(row) for row in table)<EOL>for row in table:<EOL><INDENT>while len(row) < num_columns:<EOL><INDENT>row.append('<STR_LIT>')<EOL><DEDENT>for i in range(num_columns):<EOL><INDENT>row[i] = str(row[i]) if row[i] is not None else '<STR_LIT>'<EOL><DEDENT><DEDENT>return table<EOL>
Prepare the rows so they're all strings, and all the same length.

:param table: A 2D grid of anything.
:type table: [[``object``]]

:return: A table of strings, where every row is the same length.
:rtype: [[``str``]]