set up communication between node server and Python functionality