some changes to iterations.py script