dependencies set to new_operations and replaces set to replaces. call the function subclass with 2 arguments string "0001_squashed_%s", where '%s' is replaced with migration.name and app_label,
new_migration = subclass ( "0001_squashed_%s" % migration . name , app_label )