Code

Fixed a backlog of bug reports, and worked on python 2.3 compatibility: