fixed pope parsing

changed pope parsing according to new pope table structure