code actually submitted to Udacity grader, cleaned up from OptionalLinearRegression.py