From what am i doing i am stuck [python]

You have to send your client_credentials as HTTP basic authorization and the other parameters are part of the request body.

You can modify this snippet to include the other parameters. Just add code, redirect_uri and scope to the body.