Python Cross Entropy Loss Derivative