graphics.py is not written by me, I found it online and used it to make planetMotion.py, which reads from output.txt and animates the data there. output.txt is created by main.cpp, which reads from planet_data.txt.