This is a really well done demonstration video but my takeaway is that there is a python library referenced called PyEphem for astronomical calculations.
In looking over their website, it appears that there is a newer, better designed replacement called Skyfield.