hack for python 2.x/3.x compatability when asking for verification code