A simple 3D renderer in Python