Fix a compat error between py27 and py33