generate js modules from python constants