py2.6 compatibility change