Refine testddd.py, use socket to read
    output of gdb