Suggestion: put all these into a single Python dict with keys like "dpfaBinning" and JSON-serialize that. It'll reduce repetition in your Python and keep the global namespace cleaner in JS.