Step 2: Create a Connection Object - Python

Create a connection based on your grant type using the connection factory

# Using the new configuration object create a connection
acConnection = ADPAPIConnectionFactory().createConnection(AuthorizationCodeConfiguration)