python model example