Generate dict.js in python.