Open-source Python toolkit for geophysical modeling and inversion