Replace `AsPyPointer` with `AsRef` as a bound in the blanket implementation of `From<&T> for PyObject`