save norm factors in yml file instead of pickle