Fix it so we don't need to set PYTHONPATH
Fix bug in generating json files which caused Ta to cry.