A mixin to provide objects with magic attribute reading and writing