How to call Migrate command using Python?

I created a script to manage the migration from project to project in python using the exposed apis Migrating from one project to another using python