title: ndb query excluding multiple keys or ids
body: <p>I want to query for an entity but exclude a bunch of keys/ids that I do not want in the result. What is the best way of doing this?</p>
  
  <p>I've thought perhaps the .IN operator would help me but couldn't figure out how.</p>
  
  <p>So I came op with the following solution chaining single key exclusions:</p>
  
  <pre><code>q = models.Comment.query()
  for exclude_key in list_of_comment_keys_to_exclude:
    q = q.filter( models.Comment.key != exclude_key )
  q = q.order( models.Comment.key ) # without this: BadRequestError: The first sort property must be the same as the property to which the inequality filter is applied.
  q = q.order( models.Comment.creationTime )
  </code></pre>
  
  <p>This seems to work but is it an ok way to go about it?</p>