mac python app code example
Example 1: pip installer for mac
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Example 2: command to install python3.6 on mac os
$ brew switch python 3.7.4_1
Example 3: how to run mac terminal from python script
from applescript import tell
#set what command you want to run here
yourCommand = 'ls'
tell.app( 'Terminal', 'do script "' + yourCommand + '"')