old_contents: #!/usr/bin/env python
  import csv, os
  # use parameter for timestamps file and check if file exists
  timeStampFile = os.getenv('BUILD_TREND_LOGFILE', 'timestamps.csv')
  if not os.path.isfile(timeStampFile):quit()
  
  with open(timeStampFile, 'rb') as csvfile:
      timestamps = csv.reader(csvfile, delimiter=',', quotechar='"')
      previousTime = 0
      eventName = None
      for row in timestamps:
  	if eventName is not None:
  	    if eventName == 'end':
                  break
  	    duration = int(row[1]) - previousTime
  	    print 'Duration ' + eventName + ' : ' + str(duration) + 's'
  	eventName = row[0]
  	previousTime = int(row[1])
  
new_contents: #!/usr/bin/env python
  import csv
  import os
  # use parameter for timestamps file and check if file exists
  timeStampFile = os.getenv('BUILD_TREND_LOGFILE', 'timestamps.csv')
  if not os.path.isfile(timeStampFile):quit()
  
  with open(timeStampFile, 'rb') as csvfile:
      timestamps = csv.reader(csvfile, delimiter=',', quotechar='"')
      previousTime = 0
      eventName = None
      for row in timestamps:
  	if eventName is not None:
  	    if eventName == 'end':
                  break
  	    duration = int(row[1]) - previousTime
  	    print 'Duration ' + eventName + ' : ' + str(duration) + 's'
  	eventName = row[0]
  	previousTime = int(row[1])
  
subject: use seperate lines for each import