break up settings.py and move matplotlib to non-prod module