Cleaned up timespans.py.