make matplotlib work with apache mod-wsgi