shh is a library built around Stem for creating Tor hidden services from within a Python program. It also includes a small command line tool for serving local ports or creating simple file servers as hidden services.
In order to start a hidden server you'll need to have Tor Browser open or the Tor daemon running with a control port (shh defaults to port 9051 but this can be changed in your code).