Javascript Object for Python