>>> import sys, pprint >>> pprint.pprint(sys.builtin_module_names) ('__builtin__', '__main__', '_ast', '_bisect', '_bsddb', '_codecs', '_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw', '_collections', '_csv', '_curses', '_curses_panel', '_functools', '_heapq', '_hotshot', '_io', '_locale', '_lsprof', '_md5', '_multibytecodec', '_random', '_sha', '_sha256', '_sha512', '_socket', '_sqlite3', '_sre', '_struct', '_symtable', '_testcapi', '_warnings', '_weakref', 'array', 'audioop', 'binascii', 'bz2', 'cPickle', 'cStringIO', 'cmath', 'crypt', 'datetime', 'dbm', 'errno', 'exceptions', 'fcntl', 'future_builtins', 'gc', 'grp', 'imp', 'itertools', 'marshal', 'math', 'mmap', 'operator', 'parser', 'posix', 'pwd', 'pyexpat', 'readline', 'resource', 'select', 'signal', 'spwd', 'strop', 'sys', 'syslog', 'termios', 'thread', 'time', 'xxsubtype', 'zipimport', 'zlib') > # ls /gales/pkg/python/lib/python2.7/ | grep -v '.pyc$' BaseHTTPServer.py Bastion.py CGIHTTPServer.py ConfigParser.py Cookie.py DocXMLRPCServer.py HTMLParser.py LICENSE.txt MimeWriter.py Queue.py SimpleHTTPServer.py SimpleXMLRPCServer.py SocketServer.py StringIO.py UserDict.py UserList.py UserString.py _LWPCookieJar.py _MozillaCookieJar.py __future__.py __phello__.foo.py _abcoll.py _osx_support.py _pyio.py _strptime.py _sysconfigdata.py _threading_local.py _weakrefset.py abc.py aifc.py antigravity.py anydbm.py argparse.py ast.py asynchat.py asyncore.py atexit.py audiodev.py base64.py bdb.py binhex.py bisect.py bsddb cProfile.py calendar.py cgi.py cgitb.py chunk.py cmd.py code.py codecs.py codeop.py collections.py colorsys.py commands.py compileall.py compiler config contextlib.py cookielib.py copy.py copy_reg.py csv.py ctypes curses dbhash.py decimal.py difflib.py dircache.py dis.py distutils doctest.py dumbdbm.py dummy_thread.py dummy_threading.py email encodings ensurepip filecmp.py fileinput.py fnmatch.py formatter.py fpformat.py fractions.py ftplib.py functools.py genericpath.py getopt.py getpass.py gettext.py glob.py gzip.py hashlib.py heapq.py hmac.py hotshot htmlentitydefs.py htmllib.py httplib.py idlelib ihooks.py imaplib.py imghdr.py importlib imputil.py inspect.py io.py json keyword.py lib-dynload lib-tk lib2to3 linecache.py locale.py logging macpath.py macurl2path.py mailbox.py mailcap.py markupbase.py md5.py mhlib.py mimetools.py mimetypes.py mimify.py modulefinder.py multifile.py multiprocessing mutex.py netrc.py new.py nntplib.py ntpath.py nturl2path.py numbers.py opcode.py optparse.py os.py os2emxpath.py pdb.doc pdb.py pickle.py pickletools.py pipes.py pkgutil.py plat-linux2 platform.py plistlib.py popen2.py poplib.py posixfile.py posixpath.py pprint.py profile.py pstats.py pty.py py_compile.py pyclbr.py pydoc.py pydoc_data quopri.py random.py re.py repr.py rexec.py rfc822.py rlcompleter.py robotparser.py runpy.py sched.py sets.py sgmllib.py sha.py shelve.py shlex.py shutil.py site-packages site.py smtpd.py smtplib.py sndhdr.py socket.py sqlite3 sre.py sre_compile.py sre_constants.py sre_parse.py ssl.py stat.py statvfs.py string.py stringold.py stringprep.py struct.py subprocess.py sunau.py sunaudio.py symbol.py symtable.py sysconfig.py tabnanny.py tarfile.py telnetlib.py tempfile.py textwrap.py this.py threading.py timeit.py toaiff.py token.py tokenize.py trace.py traceback.py tty.py types.py unittest urllib.py urllib2.py urlparse.py user.py uu.py uuid.py warnings.py wave.py weakref.py webbrowser.py whichdb.py wsgiref wsgiref.egg-info xdrlib.py xml xmllib.py xmlrpclib.py zipfile.py