Psi: python 2.4 compatibility + small bug fixed