json2stages.py added, with test script and golden files