Add defined terms to diffs

* Separate defined terms from terms with definitions (i.e. bold from clickable)
* Use that to apply defined terms to diffs
* PEP 8 stuff