def check(result, err):
    result = result.replace('\n \n', '\n')
    return hashlib.sha1(result.encode('utf-8')).hexdigest()
def check(result, err):
    result = result.replace('\n \n', '\n')
    return hashlib.sha1(result.encode('utf-8')).hexdigest()