[python] add total_seconds for TimeDelta (also clean up syntax a bit)
[python] use tz-aware datetime for Date.now (closes #3604). also clean up some code and use timedelta.total_seconds for timestamps.