Updated producer.py to for 2.6 compatibility for total_seconds