The problem isn't that you can't write a CGI script in Python, or that it's hard to do so. The problem is that the Python standard library is being maintained under a policy of breaking new things intentionally every release, so nothing you wrote five or ten years ago works today. The `cgi` module is one thing that got broken, but there are a lot of them.