synchronization my python code