def parse_pathway_names(pathway_names_df):
    """Parse the pathway name dataframe.

    :param pandas.DataFrame pathway_names_df: Pathway hierarchy as dataframe
    :rtype: dict
    :return Object representation dictionary (reactome_id: (name, species))
    :rtype: set
    :return all species names
    """
    pathways = {}
    species_set = set()
    for _, (reactome_id, name, species) in pathway_names_df.iterrows():
        pathways[reactome_id] = name.strip(), species
        species_set.add(species)
    return pathways, species_set
