fixing tests in py26 and py33