random python code to synchronize