refactor the json_parser.py
refactor all io.c, need to do more for ioctl()