py26 compatibility in tests