Python support for PCEF