import module instead of class
Move the global _modified function inside the Monitor class