Hello ,
I saw your needs , I'm Curious about why you're need script written by Python ?
If you would like to compatible with most Linux distros or..
I'm suggesting Ansible Playbook for it , It's written with YAML language (which is easily human readable , much more simpler than python) and Also Ansible made for it. It's an automation system for servers.
Also It can used in any distro and any package manager and any Cloud provider with API you would like.
It can run in Mac OS, Linux, BSD even Windows.
I'll do this job with $277 in 4 days maximum. My ETA for getting ready first stage of playbook is 2 days maximum.
Thanks in advance