Making Synoptic Map

“Hello! I am a first-year master’s student at a university in Japan. Currently, I am working on creating synoptic maps from magnetograms, using data from HMI. I am having trouble converting the magnetogram data into heliographic coordinates. If I were to do this conversion in Python, what kind of code should I write? I understand that you may be busy, but I would greatly appreciate your response. Thank you in advance.”