I think the old James Cagney movies were often blamed for glorifying gangsters, even though the morality code of the time always had them end with he criminal dead or in prison.