Fixed typo in doc of categorical cross-entropy

The true and coding distributions had been switched.
Also: a few PEP8 improvements.
Merge pull request #1211 from delallea/minor

Fixed typo in doc of categorical cross-entropy