Binary Cross Entropy Function Python Format