Update config.py

allows config object to be iterable. useful for sqlalchemy.engine_from_config()