fixed unsupported compare between str and int in python 3.4