Use string formatting when possible. Can't use str.format() (although it would be easier to read since it was only added in 2.6
Use for i in iterable instead of for i in range(len(iterable)). Have a hard time testing it well, but it seems to not break anything.