Tools and libraries to use with J-Link OB and CoreSight
Finally I have decided to use the pylink library on the BBG to control the jlink OB module. Pylink offers all the DLL function for jlink.

To decode the DWT packets sent over the SWO pin I wrote my own parser in python. The parser is based on the itmdump parser written for OpenOCD.