Cleaning up continuity.py

- "tuple" is reserved
- Calculate total_sum as the sum of the last 50 items via slice notation
- None is singleton.  Compare via identity, not equality