Python General Relativity Formula