pub fn value_from_object(vm: &VirtualMachine, obj: &PyObject) -> PyResult<u8>