[python] fall-back version if matplotlib is missing
This MR fixes an issue with missing matplotlib which caused a CI problem in dune-grid (see companion MR dune-grid!581 (merged))
Edited by Christian Engwer
This MR fixes an issue with missing matplotlib which caused a CI problem in dune-grid (see companion MR dune-grid!581 (merged))