FormΒΆ

The cgi.FieldStorage class has all that is needed to handle submited forms:

import cgi
form = cgi.FieldStorage() # instantiate only once!

It is transparent to the programmer if the data was submited by GET or by POST. The interface is exactly the same.