Fixed path
Optimized imports
Replaced os.system with subprocess.Popen
Fixed duration xml tag