[IMP] resource: remove the need to install matplotlib

Seriously? To flatten a list, a math dependency of 80MB?
Fixes #4383