def restore_long_table_names():
 for table in metadata.tables.values():
  table.name = table._original_name
  del table._original_name

def restore_long_table_names ( ) : for table in metadata . tables . values ( ) : table . name = table . _original_name del table . _original_name
modifies the table names to restore the long-naming .