Fixed Generator to use dumps instead of loads