old_contents: from datetime import datetime
  
  def convert_to_epoch(timestamp):
  	diff = (timestamp - datetime(1970, 1, 1))
  	seconds = int(diff.total_seconds())
  	return seconds
  
new_contents: from datetime import datetime
  
  def total_seconds(td):
      # Keep backward compatibility with Python 2.6 which doesn't have
      # this method
      if hasattr(td, 'total_seconds'):
          return td.total_seconds()
      else:
          return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6
  
  def convert_to_epoch(timestamp):
  	diff = (timestamp - datetime(1970, 1, 1))
  	seconds = int(total_seconds(diff))
  	return seconds
  
subject: Update timeutils.py