2D Migration and Inversion Code in Python