Python code for performing a q-tomography inversion