In basic terms, mod_python is a module within Apache that allows Python code to run on the web server. This is one of the most efficient ways to run Python. mod_python servers as an integrator of Python with the web server and was written by Aaron Watters.