How to save .gh file directly from python component?

Thank you David,

I mean the file I am in and perform from gh python component the script that executes this command:
01