[e2t.py] fix bugs with logging