Py3k

Make some minor modification to make `gscholar` compatible with python3.