When building MOI wrappers for Python solvers using PythonCall, it is necessary to implement
MOIU.map_indices(::Function, x::PythonCall.Py) = x
for Python objects to be accepted in the MOI attribute system.
A possible solution, to avoid type piracy, is for MOI to have a PythonCall extension.