fixing dict_keys is not subscriptable.

Found another python3 issue.