def do_this_other_thing_that_may_take_too_long(duration):
    time.sleep(duration)
return 'done after sleeping {0} seconds.'.format(duration)
pool = multiprocessing.Pool(1)
print('starting....')
right way to run some code with timeout in Python