def add_mappings is duplicated across different generators with drift between the code, causing a variety of subtle issues relating to loss of prefix information
See my comment here:
#192 (comment)
The fix is to simply move add_mappings from jsonldcontext gen into the parent, and to remove it from pythongen and prefixmapgen
I hypothesize this will fix #163