def combine_hashes(hashes):
 hasher = sha1()
 for h in sorted(hashes):
  hasher.update(h)
 return hasher.hexdigest()

def combine_hashes ( hashes ) : hasher = sha1 ( ) for h in sorted ( hashes ) : hasher . update ( h ) return hasher . hexdigest ( )
a simple helper function to combine other hashes .