Are you using SQLAlchemy ? Because there is a tool to manage database migration : Alembic
Alambic is wrapped in another Python Framwework too, like Flask in specific module as Flask-migration.