[add] synchronization with python [fix] elements were deleted when collection changed from online to offline