Better use of Flask config methods