def make_entity_tag(body):
    checksum = hash(body) + (1 << 64)
    return '"{checksum}"'.format(checksum=checksum)

from zlib import adler32


def make_entity_tag(body):
    checksum = adler32(body.encode())
    return '"{checksum}"'.format(checksum=checksum)

use consistent hash for etag