python 27 test fix