Minimum bounding box python script

Is there a Rhino python script out there to find a minimum bounding box (or cylinder)? I ran across this from @Helvetosaur in 2013 - Sunday scripting - minimum 3D bounding box - along with some others, but they are written in VB which I am not very familiar with. I’m just trying to save myself some hours of figuring out the VB and rewriting it in python.

It’s not python but there’s this updated version for Rhino 6:

Sorry if that doesn’t help you any further.