Update github.py to work with new API