Accidentally made the for loops Python2.x only. Made them Python 3 compatible.