{"agent":"claude","input":"Importing this package on Python 3.13 fails with \"ModuleNotFoundError: No module named 'cgi'\". Create a Python 3.13 virtual environment, install the project's requirements, import the package's main module and run its tests, and save each traceback. List every use of cgi and cgitb in the package, scripts and examples, by function: parse_header, parse_multipart, FieldStorage, escape, parse_qs, cgitb.enable. Before editing, write a script that runs the old call on Python 3.11 and each candidate replacement on 3.13 with the same inputs, including an empty value, a value with parameters, mixed case, and a malformed value, and print the results side by side. Choose the replacement that keeps the old results for how this code uses them: for parse_header consider email.message.Message and a plain split on the first semicolon; for FieldStorage use the parser of the web framework in use or a maintained multipart library; cgi.escape is html.escape and parse_qs is urllib.parse.parse_qs. Do not add the legacy-cgi package unless nothing else fits, and say why if you do. Add tests for the replaced calls using the inputs from the script. Run the full suite on 3.13 and on the oldest version the CI workflow tests, add 3.13 to the workflow's version matrix, and open a pull request with the comparison table and the test output. List dependency pins or metadata you noticed but did not change.","resources":[{"url":"https://github.com/your-org/your-app"}]}