Fix format issue of kgtp.py