parse-reg: add a python script to parse registers

usage: dr(0x10,[8,5],[4,1],3,2)