Conceptually, I would like to accomplish the following but have had trouble understand how to code it properly in Python:
from threading import Thread
for i in range(0,3):
t = Thread(target=myfunction)
t.start()
# wait until threads have finished executing
print 'complete!'