tools : xmlpg.py, very ugly (generate cpp)