if you want to use mysql with python, apart from standard installations, you also need a small integrator called mysql for python. Its a python based module to make sure that all communications with mysql from python code to look and behave similar rest of python style apis.
if you are on windows with python 2.5, you can get it from following link
mysql for python
However, for python 2.6, above installation is not working. follow below link
mysql for python 2.6