def METHOD_NAME(self, s):
    """Return a shell-escaped version of the string s."""
    if six.PY2:
        from pipes import METHOD_NAME
    else:
        from shlex import METHOD_NAME
    return METHOD_NAME(s)