Python Brain Teasers:

Title: pi.py Brainteaser
Name of book: Python Brain Teasers Exercise Your Mind (page 7)
Example: pi.py needs extra action for international users (page 7)

In the pi.py example, I was only able to achieve the desired result if I added the following line to the top of my file:
# -*- coding: utf-8 -*-

Thanks! The coding line is required only in Python 2 (which is no longer supported). Python 3 source files are utf-8 encoded by default.