Using PyGame and PyOpenGL a few important algorithms and codes for computer graphics and visualisation