A raytracer in Python that's really slow