In python, it\'s common to have vertically-oriented lists of string. For example:
subprocess.check_output( [ \'application\', \'-first-flag\', \'-secon
You could wrap each string in parens:
subprocess.check_output( [ ('application'), ('-first-flag'), ('-second-flag'), ('-some-additional-flag'), ] )
And btw, Python is fine with a trailing comma, so just always use a comma at the end of the line, that should also reduce errors.