datetime.deltatime doesn't have total_seconds function in 2.6, had to use custom function
more styling