Modified scalar.py to actually work toward the presented problem.  Removed superfluous testing.  Stuck on the same issue as my groovy implemenation.