The Python REPL is an amazing tool for exploring a problem and quickly finding an answer. But how do you turn that "quick and dirty" snippet into an elegant, reusable module? In this talk, you'll learn how to isolate input, output, configuration options and more from your core logic to transform that block of code into a package and script that behave well in command line environments.