Fixing python modeling on FO - credit to Andre Iskandar