Query based project

I have a python program that generates lat, long coordinates based on a specific keyword. I want to feed the list of coordinates into cesium and display the points on the 3D map. I need to pass information between python and javascript. I want to use json to do this but I don't know how the transfer actually occur.