Fix invalid python 2.6 syntax