PyDoc

Start PyDoc Web Server

python3 -m pydoc -p 2001
Note: python2 does not accept server commands. It just runs the server.
Python3 accepts commands and displays the following prompt
Server commands: [b]rowser, [q]uit
Server>

Links

PyDoc (YouTube - Socratica)

pydoc — Documentation generator and online help system