fix python cartridge