Getting the Python keycloak client to work

I have been using the code samples available in Welcome to Python Keycloak Client’s documentation! — Python Keycloak Client 0.2.4-dev documentation in order to get a Python based client working, specifically this code excerpt:

from keycloak.realm import KeycloakRealm

realm = KeycloakRealm(server_url='', realm_name='my_realm')

oidc_client = realm.open_id_connect(client_id='my-client',

It looks like the keycloak.realm package has moved on since the documentation was produced - the code fails due to a missing third parameter because the code fails with the following error message:

oidc_client = realm.open_id_connect(client_id=‘python’, client_secret=’’)
At line:1 char:55
oidc_client = realm.open_id_connect(client_id=‘python’, client_secret …
Missing argument in parameter list.
+ CategoryInfo : ParserError: ( : ) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

I suspect that the missing third parameter is a self parameter derived from the, are there any code samples based on the package that work that someone can point me to ?