small fixes to python_to_visjs.py