Added comments to invert_dict.py