Added mpl pdf device specifier, to avoid $DISPLAY problems when running this script on scinet devel nodes