python modeling inferface