yes, you use the python script in your cgi folder.
here is an excellent tutorial
here
that will get you started.
first off though, you must have the python module cgi installed and have it load when your server starts.
if you could, please let me know what distrobution of linux or unix you are using, and which web server you are using and we can help you out even more.
good luck!