Create flattenDict.py