Python inversion gravity tools