KeyError doesn't exist on 1.8.7
make an explicit key set so they're all normalized as symbols