Got it. Some scoping error was preventing me from using config = config() and I couldn't figure out what the problem was.