PyMOTW: sys Part 2: Runtime Environment

sys provides low-level APIs for interacting with the system outside of your application, by accepting command line arguments, accessing user input, and passing messages and status values to the user.

Read more at pymotw.com: sys