Update extensions.py