py2.5 compatibility