Python is a programming language that is included in the standard OSX installation.
Python is a programming language.
It is included in the standard OSX installation at /usr/bin/python. This python.org page shows how to start.
The installation cones with many libraries that allow interaction with other application using Apple events in the same manner as Applescript or calls to native libraries , standard internet protocols like HTTP, SMTP etc.