import main
import datetime
import time

f = open("records.txt", "a+")
f.write("RSSI, sec_elapsed" + '\n')
f.close()

time.sleep(10)

start_time = datetime.datetime.now()
exec_count = 0
exec_amt = 12000

while (exec_count < exec_amt):
    main.main(start_time)
    exec_count += 1

@@ -67,172 +67,523 @@
 a+%22)
-%0Af.write(%22RSSI, sec_elapsed%22 + '%5Cn')%0Af.close()%0A%0Atime.sleep(10)%0A%0Astart_time = datetime.datetime.now()%0Aexec_count = 0%0Aexec_amt = 12000%0A%0Awhile (exec_count %3C exec_amt):
+        # open text file for editting%0Af.write(%22RSSI, sec_elapsed%22 + '%5Cn')  # add headers to text file%0Af.close()%0A%0Atime.sleep(10)                       # sleep for 10 seconds to allow Bluetooth Services to start%0A%0Astart_time = datetime.datetime.now() # get relative start time%0Aexec_count = 0                       # initialize counter%0Aexec_amt = 12000                     # amount of times to execute main which records 10 records%0A%0Awhile (exec_count %3C exec_amt):       # execute main.py while count is less than amount
 %0A   

Update run.py