dict fallbacks for python2.6 compatibility