def escape_quotes(string):
    """Make the string accepatble to command line by esacping any quotes

    >>> escape_quotes('word"here') == r'word\\"here'
    True
    """
    return string.replace('"', r'\"').replace("'", r"\'")