arglist = 'application -first-flag -second-flag -some-additional-flag'
arglist = arglist.split()
subprocess.check_output(arglist)
How do you protect yourself from missing comma in vertical string list in python?