API key Autorization using Python

Hi,

Is there any way to use python to authorize using API key and API key id ?

Any sample python code available?