Fixed Python2.6 syntax