find patch attached ... i'm not great at python so there may be mistakes, but you can get the drift of what it's supposed to look like
Created attachment 30580 [details, diff] hppa.py.patch
Created attachment 30623 [details] hppa.py
patched on my end, waiting on baselayout 1.9.0 for me to commit my changes