Fix synchronization between python and puma