Modified blog post: python doctest