Runtime inspection of objects exposed to Python.
Tracking issue: https://github.com/PyO3/pyo3/issues/2454.