Update
Update

axes.hold is deprecated in matplotlib new version(3.1.3). 
The hold mechanism is deprecated and will be removed in v3.0. The behavior will remain consistent with the long-time default value of True.

xrange -> range
mandli/multilayer-examples