cleaned up deprecated code in python_to_pythonjs.py