cfme.utils.quote.
quote
Combine the arguments into a single string and escape any and all shell special characters or (reserved) words. The shortest possible string (correctly quoted suited to pass to a bash shell) is returned.