SOME STANDARD MODULES IN PYTHON
The Python Standard Library provides many modules that can simplify your own scripts. A list of the Standard Library modules is at http://www.python.org/doc/.
Some of the most important modules include cgi, math, os, pickle, random, re, socket, sys, time, and urllib.
The code samples in this book use the modules math, os, random, re, socket, sys, time, and urllib. You need to import these modules to use them in your code. For example, the following code block shows you how to import 4 standard Python modules:
import datetime import re import sys import time
The code samples in this book import one or more of the preceding modules, as well as other Python modules.