Fixes to linkinfo.py