Outcries against movies that glorified underworld criminals put cagney on the side of the law in 'g' men. The screenplay was written.