To allow a better mapping between the Python code and the actual BN APIs, I suggest modifying the bn_get_genesis_validators_root() function to return the entire dataset returned by the /eth/v1/beacon/genesis API rather than just the genesis_validator_root.