Most of the Marx Brothers' best work was honed on the stage. It was either a touring comedy/vaudeville performance that was converted to a movie or they took their script on the road to refine the jokes prior to filming. It's not universally the case, particularly with their later movies, I believe, but with the early and best work it was.