Remove unecessary matplotlib import to avoid cache lock file io-error, add MPLCONFIGDIR to submit script