title: how to replace_many with mongodb replace_many
body: <p>iam trying to replace many documents in collection in mongodb,  i need full replace of many documents, and i dont understand how it make, my code is...
  and there is no such function as replace_many in pymongo</p>
  <pre><code>    documents=list(collection.find())
      names=[]
      if len(documents)&gt;0:
          for document in documents:
              names.append(document['name'])
          for document in documents:
              for new_document in new_documents:
                  if item['name'] in names:
                      list(map(lambda item: item.replace(document, new_document), documents))
          collection.replace_many ?????
          print('good')
      else:
          collection.insert_many(new_documents)
  </code></pre>