Python extensions for PCEF