In python2 there would be some auto coercion done so that the orginal code here works but that's not the case in python 3.