Pape Rank: python stream implementation