dependencies set to a list of tuples with 2 elements: app_label and migration.name for every migration in merge_migrations. call the method subsclass with 2 arguments: string "%04i_merge", replace '%04i' with biggest_number incremented by one,
new_migration = subclass ( "%04i_merge" % ( biggest_number + 1 ) , app_label )