import os os.system("""osascript -e 'tell app "Safari" to open'""")

Read more of this post