Piggy backing off this a little, in a similar vain I recently embedded Python in a macOS app (approved by the store) which was a bit of a pain to do. I documented the process as well since I couldn't find a full fledged tutorial on it.
https://medium.com/python-pandemonium/embedding-a-python-app...