def goof(offset): '''Jump to the specified ``offset`` within the database.''' res = ui.current.address()-baseaddress() ea = coof(offset) idaapi.jumpto(interface.address.inside(ea)) return res