Build a Python script to generate SQL migration rollback scripts — Development Task