Make DotDict lookup method Python2.6 compatible