fixed py 2.5 incompatibility