code: def parse_as_header(class_, f):
          
          (version, previous_block_hash, merkle_root, timestamp,
              difficulty, nonce) = parse_struct("L##LLL", f)
          return class_(version, previous_block_hash, merkle_root, timestamp, difficulty, nonce)
docs: Parse the Block header from the file-like object