def hosts_loader(filename: str) -> dict:
    """ Loads host mapping file

    :param str filename: path to file
    :return: mapping as dictionary
    """
    return_dict = {}
    with open(filename) as mapfile:
        lines = [
            line.strip() for line in mapfile
            if not line.startswith('#') and line.strip() != ''
        ]
    for line in lines:
        splitline = line.split()
        return_dict[splitline[0]] = ' '.join(splitline[1:])
    return return_dict