I have below method to get the information of pull request using the pygihub api. This returns the set of repo and list of PRs information.
def process_github