def __cmp__(self, other):
    if not isinstance(other, AcceptItem):
      return NotImplemented
    return cmp(self.sort_key, other.sort_key)
This function is meant to read a bit string from a 
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/util.py/AcceptItem.__cmp__--crossover with--dataset/ETHPy150Open networkdynamics/zenlib/src/zen/util/bitvector.py/BitVector.read_bits_from_fileobject