update references to use pythonic dictionary access