btw if you like processing text outside of python (say using grep or something)
python -c "help('modules')" > all_imports.log which you might note on windows get's processed to: python -c "help('modules')" 1> all_imports.log on windows from within a batch file -- http://mail.python.org/mailman/listinfo/python-list