py26 compatibility

dict comprehension -> dict((, ), ...)
remove debug print code