Why mod_python is oop but mod_php is not ?
Example :We go to www.example.com/dir1/dir2
if you use mod_python apache opens www/dir1.py and calls dir2 method
but if you use php module apache opens www/dir1/dir2/index.php
Perhaps I misunderstand your question, but both Python and PHP support both procedural and object-oriented programming.  (Though one could argue that Python's support for OO is the stronger of the two.)
mod_php vs mod_python