I would like to save the output of the python help() function to a file eg the output of
>>> help("modules")
amongst others i used
modfile = open("env:.P_ModList","w")
mods = help("modules")
print >>modfile , mods
modfile.close()
to no avail. Is there a solution?