min_weight_fraction: comments and pep8