Python 3.3 string compare fix