title: $eq invalid syntax Mongo DB
body: <p>I have a nested json and i want to find a record whose value is equal to a given number. I'm using pymongo in python wih equal operator but  getting some errors:</p>
  
  <pre><code>from pymongo import MongoClient
  import datetime
  import json
  import pprint
  def connectDatabase(service):
      try:
          if service=="mongodb":
              host = 'mongodb://connecion_string.mlab.com:31989'
              database = 'xxx'
              user = 'xxx'
              password = 'xxx'
              client = MongoClient(host)
              client.xxx.authenticate(user, password, mechanism='SCRAM-SHA-1')
              db = client.xxx
              new_posts = [{"author": "Mike", "text": "Another post!",
                 "tags": [
                 {
                  "CSPAccountNo": "414693"
                  },
                 {
                 "CSPAccountNo": "349903"
                 }]
                 }]
                 result=db.posts1.insert_many(new_posts)
  
              print (xxx.posts1.find( {"CSPAccountNo": { $eq: "414693" } } )
  
      except Exception as e:
          print(e)
          pass
  print (connectDatabase("mongodb"))
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>  File "mongo.py", line 35
      print (cstore.posts1.find( {"CSPAccountNo": { $eq: "414693" } } )
                                                    ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I'm very new to Mongodb. Any help would be appreciated</p>