Write a method which normalizes the weights of every class. The average weight per class should be one.