python getting started mac code example
Example 1: which python mac
$ brew update && brew upgrade python
Example 2: how to make python open an application on mac
import os
os.system("""osascript -e 'tell app "Safari" to open'""")
$ brew update && brew upgrade python
import os
os.system("""osascript -e 'tell app "Safari" to open'""")