Python code complete

Completed python code using objects - not arrays as in the Scilab
implementation. This is totally different.