Don't reset these flags when loading a file (or undoing) rely on BPY_python_reset to reset the flags.