def rewrite_long_table_names():
 table_objs = metadata.tables.values()
 for table in table_objs:
  table._original_name = table.name
  if (len(table.name) > 30):
   for letter in 'aeiouy':
    table.name = table.name.replace(letter, '')

def rewrite_long_table_names ( ) : table_objs = metadata . tables . values ( ) for table in table_objs : table . _original_name = table . name if ( len ( table . name ) > 30 ) : for letter in 'aeiouy' : table . name = table . name . replace ( letter , '' )
disemvowels all table names over thirty characters .