rewrite createPodPolicyGroup.py