update middleclass to 3.0.1