small fix for python 3

Hi, thats just another small fix for python 3 compatibility.