Python decorators and classes for sharing attributes between several instances.