update yalptool.py

Add config file, prepare for python3