fix Dictionary for Python 3