Hallo, I want to synchronize the main function of my script. I havn't a class structure in my script. def main(): # my code to synchronized if __name__=='__main__': main() How can I resolve this problem simply? Thank's for your hints, Thomas