fix py 2.x regression