i don't have py2.6 to test it, but it failed on travis. It worked after using the dict constructor as suggested here: http://stackoverflow.com/a/1747827/3005167