implemented use of standard python modules from Python.h for python matplotlib