\py@modindex: Format the index entry for the module index more like
that used in the "normal" index. No visual difference, but
more easily processed by helper scripts.
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 904e971..8f95764 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -257,7 +257,7 @@
\setindexsubitem{(in module #1)}%
\index{#1@{\py@idxcode{#1}} (#2module)|textbf}%
\ifpy@UseModuleIndex%
- \write\modindexfile{\protect\indexentry{#1@{\tt #1}}{\thepage}}%
+ \write\modindexfile{\protect\indexentry{#1@{\texttt {#1}}}{\thepage}}%
\fi%
}