Code

corrections for python2.3 compatibility: