update yalptool.py

Add config file, prepare for python3
fix future import