How can i change the default Skysphere material to my own material using only python?

I created my own skysphere using python to use in a project and I need to change the default skysphere material from the 3rd person world to the material I created, but I can’t do it alone, can anyone help me with any tips on how I can do this using python?