I don\'t see an option to checkout or list remote/local branches in this module: https://gitpython.readthedocs.io/en/stable/
Just to make it obvious - to get a list of remote branches from the current repo directory:
import os, git
# Create repo for current directory
repo = git.Repo(os.getcwd())
# Run "git branch -r" and collect results into array
remote_branches = []
for ref in repo.git.branch('-r').split('\n'):
print ref
remote_branches.append(ref)