Fixed tedious python2 problem.