title: pymongo 64bit unsigned integer
body: <p>I'm trying to insert a 64bit unsigned integer in mongodb using pymongo. The integer is the output of a CRC64 algorithm. I tried to following:</p>
  
  <pre><code>long(crc64(unicode(kw).encode('unicode-escape'))))
  </code></pre>
  
  <p>If I insert this into mongodb it starts to complain that only 64bit integers are supported by mongodb. Next I tried to convert it to a signed 64bit int like so:</p>
  
  <pre><code>ctypes.c_int64(crc64(unicode(kw).encode('unicode-escape')))).value
  </code></pre>
  
  <p>Which kind of works, mongodb stops complaining about the size of my int, but when I look at the data in mongodb I get this:</p>
  
  <pre><code>{
      "_id" : {
          "floatApprox" : -5307924876159732000,
          "top" : 3059119730,
          "bottom" : 2651469802 },
      "keyword" : "redacted",
      "normal_hash" : { 
          "floatApprox" : -671156942315906300,
          "top" : 4138701393,
          "bottom" : 549001936
      } 
  }
  </code></pre>
  
  <p>What's going on here? Is there any way to put the 64bit int into the db as just an int (don't really care whether it's signed or unsigned.)</p>