had to change some things to be python 2.5 compatible (for my laptop)