To turn on Python Development Mode, you can use this flag:
python3 -X dev example.py
or use this environment variable:
PYTHOND