Added a first Python refactoring.
Added small comment to continuousSum.