<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _long_from_raw(thehash):
 """Fold to a long, a digest supplied as a string."""

    hashnum = 0
    for h in thehash:
        hashnum <<= 8
        hashnum |= ord(bytes([h]))
    return hashnum