Python3 fix from Jaedyn.