A generic tool for migrate in python