Python code for the book "Computer Vision:  Models, Learning, and Inference"