python class assignments applied in different ways for different applications