Update dictionary.py

for python 2.7