Update flattenDict.py