Oauth cannot access via API

Hi.

I am studying how to make a python API.
So I follow this guild

However, when I do python ReplaceVideo.py.

Have you authorized me? (y/n) y
Access Token:
Traceback (most recent call last):
  File "ReplaceVideo.py", line 11, in <module>
    api = XiboAPI.XiboAPI()
  File "/Users/Joshua/Desktop/wave/p/e/temp/XiboAPI.py", line 69, in __init__
    user_token, user_secret = self.setupUserToken(url,consumer_key,consumer_secret)
  File "/Users/Joshua/Desktop/wave/p/e/temp/XiboAPI.py", line 139, in setupUserToken
    print "    - oauth_token        = %s" % access_token['oauth_token']
KeyError: 'oauth_token'

This error pop up.

I have followed the instruction added a new application, get the key and secret, and change the defaults.cfg.

Add:
Although I tried directly find the oauth key and secret from Database, but the XML return empty.

Perhaps you’re using a different OAuth library or a newer version that isn’t compatible.

The code on the site worked at the point that article was written with the libraries indicated. I’ve never tested it on a Mac though so that may be a problem too.