python tools : TG dump to CSV conversion