inversemodel.py