This code was written in Python 2.5.4 for Windows XP/7.