log file permissions, set python path before reading settings.py