Python replacement for XProtect.