Looking for getting OAuth token in Python

Why you requesting The Analytics Extensions then calling the search endpoint?

What are you actaully trying to do, as this will advise us what kind of token you need?