title: Object() takes no Parameters ; however, __init__() exists
body: <p>I am working in a Jupyter notebook trying to implement simple CRUD operations for a collection using Pymongo.  The code for the CRUD class so far is:</p>
  <pre><code>from pymongo import MongoClient
  from bson.objectid import ObjectId
  
  class AnimalShelter(object):
      &quot;&quot;&quot; CRUD operations for Animal collection in MongoDB &quot;&quot;&quot;
  
      def __init_(self, username, password):
          # Initializing the MongoClient. This helps to 
          # access the MongoDB databases and collections. 
          self.client = MongoClient('mongodb://%s:%s@localhost:54933' % (username, password))
          self.database = self.client['AAC']
  
  # Complete this create method to implement the C in CRUD.
      def create(self, data):
          if data is not None:
              self.database.animals.insert(data)  # data should be dictionary
              return True
          else:
              raise Exception(&quot;Nothing to save, because data parameter is empty&quot;)
              
  # Create method to implement the R in CRUD. 
      def read(self, data):
          if data is not None:
              self.database.animal.find(data)
              return True
          else:
              raise Exception(&quot;Nothing to find, because data parameter is empty&quot;)
  </code></pre>
  <p>The code for the main py file is:</p>
  <pre><code>from module4_markw import AnimalShelter
  
  
  def main():
      username = 'aacuser'
      password = 'acc355!'
      aShelter = AnimalShelter(username, password)
      data = [&quot;&quot;]
      aShelter.create(data)
      aShelter.read(data)
  </code></pre>
  <p>When I run main, however, I get an &quot;Object() takes no parameters&quot; message. I'm not really sure what is causing this.  Others posts have stated that this means that their is no init() in the class code, but this is definitely there.  This error did occur after I reset the kernel in Jupyter, so something may have gone awry during that.  Thanks!</p>