did you try a class-level decorator? I'm not sure if that would work with inheritance, but it's worth a try.