Python Information Value And Weight