table2model is a lambda function with an argument table_name, return value is the return value of the re.sub method,
table2model = lambda table_name : re . sub ( r'[^a-zA-Z0-9]' , '' , table_name . title ( ) )