Fix Python 2.5@Maemo 5 compatibility