how to split python script in parts and to import the parts in a loop?,time.sleep(1)