Added in first (alpha) version of the Python code

Added in the first version of the Python code.  Needs testing,
refinement, and comments.