He also refers to another repo with a very small Python implementation of a raytracer. There, the author links to an article how he managed to speed up raytracing in Python by a factor of 130, going from 15 seconds per image to 115ms: http://www.excamera.com/sphinx/article-ray.html