Corrected a python3 porting bug.