Fixed the program so that it runs correctly in Eclipse under PyDev.