stuff for showing DMA packets in python