Updated partinfo.py and partinfo.c