Ummm... Of course you can! Consider using opengl libraries like pyopengl. But I would write my own rasterizer (and I did)! With python though that path is much harder.