How to use dicts and modify them on the fly.