get trace.py and flatten to agree on the log directory