Fix TypeError in github.py