How to have Python and JS talk to each other?