Backporting ChainMap from Python 3 to Python 2