Custom moment of inertia

Is it possible to assign custom moments of inertia to an object via Python?
/here the question ends…/