app_to_dict doesn't suffer from this because it gets an intantiated app object, not a dict.