Fix weird Python 2.7 problem