Flask render html,  not creating yaml file