title: not able to use distinct and sort in same query whereas able to run it in shell - mongo
body: <p>I'm able to run distinct and sort in the same query  in shell. But when I try using pymongo I got the following error,</p>
  
  <p><em>TypeError: distinct() takes at most 3 arguments (4 given)</em></p>