It would be nice if the preset dirty flag were exposed to the python scripting environment. Maybe this can be extended to knowing the dirty state of anything that is dirty-able and also already exposed to the scripting environment. Rationale: For optimizing scripts that inspect and deal with resource state changes, such as for custom serialization.