Move scipy import into the function
Fix make_svg with degenerate surfaces