Ich glaube, das Problem kann in der Tatsache liegen, dass Sie app.config.from_object ein Python-Objekt übergeben wenn es einen String erwartet. Aus der Dokumentation:
app = Flask(__name__)
app.config.from_object('yourapplication.default_settings')
app.config.from_envvar('YOURAPPLICATION_SETTINGS')
https://flask.pocoo.org/docs/0.10/ config/#configuring-from-files
In Ihrem Fall sollten Sie also Folgendes tun:
app.config.from_object('your_app.config.{}'.format(config_name))
wobei config_name stimmt mit dem Objekt in Ihrer config.py überein.