def escape_filename(filename):
    """Surround filename in "" and escape " in the filename
    """
    filename = filename.replace('"', '\\"').replace('`', '\\`')
    filename = '"%s"' % filename
    return filename
