fixed pep8
changed the probability normalization to not use keepdim