fixes for py26 tests