flask global config was used outside of application ... fixed