Update sdtest.py

tweaking balance of iteration logic