shellescape (pypi): Shell escape a string to safely use it as a token in a shell command (backport of cPython shlex.quote for Python versions 2.x & < 3.3)
Keywords: shell|quote|escape|backport|command line|command|subprocess