in reply to When is a module too minimal?

See How a script becomes a module for a way to blend the two.