Update static.py
(cherry picked from commit 934d7fe)