this is an example of some squirrelyness with converting dictionary objects from javascript to python (and back). it seems like there's a bug with the keys of sub-dictionaries. to try the script out, host it somewhere with /src/brython.js available, for example as a child of the 'tests' folder.