Fix error in Python 3.3:
    TypeError: 'dict_keys' object does not support indexing