`safe_mask` is unused. You should install helpers for pyflakes and pep8 in your editor or workflow.