Python toolkit for modeling and inversion in geophysics