fix Dictionary for Python 3
Merge pull request #191 from larsmans/py3-dictionary

fix Dictionary for Python 3