Change GitHub API code to use the requests module