I've had much better experiences with Haskell (well, mostly PureScript for now) than Python, but that might be because I am very hands-on with the design of the core types and abstractions I'm working with.
Having an effect system so that Claude is not tempted to throw in side-effects everywhere helps a lot too!