I want to create a guizmo system on the pyopengl project im working in

To do that i need a way to get what object in the schene the mouse is over, is there a way to find this out?
if it helps as a example this is the project im working on https://github.com/Thiago099/Experimental-3d-modeling/blob/master/main.ipynb
Based in a awser from this post and some adaptations i was able to get a code that works
Here is the parameters you will need to know if your mouse pointer is a part of a 3d object
And here is the functions that can check that:
Note that those isect functions return the distance the interception point is from the screen