What is the role of python for writing dynamic web pages? Does it play an equivalent role to php?
If so, can it do all the same things as php (MySql, file manipulation, sending emails, ...)
Python is a multi purpose language and not limited to the web like PHP.
Numerous web frameworks like Zope, Django or Pylons are build with Python. Apart from that: Php and php-based apps have very bad security record e.g. compared to Zope-based apps.
What is the role of python on the internet?