cgi.py: Implement a wrapping operation.