def hashimg(self, im):
    ' Compute a hash for an image, useful for image comparisons '
    return hashlib.md5(im.tostring()).hexdigest()
Compute a hash for an image, useful for image comparisons
def hashimg(self, im):
    '  '
    return hashlib.md5(im.tostring()).hexdigest()