added json cleanup so the useless js keys don't land into python
fixed levels in project_definition
added correct weights to generated json