Apparently I wrote something to parse BSP files at some point. I don't recall doing this, but here it is:
BspReader.tar.bz2