ternary, move manifest.json building to python file