from typing import Sequence
import shlex


def _args_to_str(args:Sequence[str]) -> str:
    """ Take list of args and return string that can safely be executed """
    return ' '.join([shlex.quote(arg) for arg in args])