Creating modules

INTRODUCTION


#!/usr/bin/python   # optional

module_docstring   # optional

# imports
import sys

# constants

# exception classes

# interface functions

# classes

# internal functions and classes

def tester():   # a function with tests, optional
    statements

if __name__ == "__main__":   # run tests if we are in the main module
    status = tester()
    sys.exit(status)