Post Test Loop Example Python Code