Update xes.py

Added a for loop in Trace().build_trace() so it appends trace attributes to XML.