Modified implementations.
Python policy file generation using template.