port generate_comparative_plots

now named grouped_distributions
fix pep8 "fun"