Run python script from push button

I am would like to run a python script from a push button in calc. After I create a push button → right click → select control properties → select he events tab → execute action this will take me to a window that allows me to choose a macro but not a python script. Do I need to create a macro and call the script from the macro or is there a way to for the push button to call the python script directly? I downloaded ASPO and tried to find some way using that. but no luck. After spending a considerable time searching I cant seem to find a straight forward answer. Thanks.

I found the solution Here