fix py26 errors