A script that you run by hand can print what it likes. A program that runs on a server, or inside a scheduled job, or as a tool for other people, needs three things. It must report what it is doing in a way that can be filtered and kept, which is logging. It must take its settings from the command line in a standard way, which is argparse. And sometimes it must run another program and read its answer, which is subprocess. This lesson introduces all three.
More lessons in Complete Python Programming