Fix python 2.7 failure