Python script executor

Hi, is there any way we can make a script executor using python? I need one for my mac, i would use Calamari-M but I don’t want to pay, so I decided to make one using python. Does anyone know how? Thanks.