Setting and using variables in Python Extension

Does anyone knows how to retrive a value of a variable set on “extension.yaml” inside a Python Code ?

I was able to get the values from activation configuration using “self.activation_config”, but I´m not able to retrieve a value from the section “vars” in extension.yaml.

vars:
  - id: environment
    displayName: Environment
    type: enum
    availableValues:
      - value: prod
        displayName: Production
      - value: uat
        displayName: UAT
      - value: dev
        displayName: Development
    description: Environment to monitor (e.g. production, staging)
    defaultValue: "dev"

you can check this reply it has a rich example

https://community.dynatrace.com/t5/Extensions/Extensions-2-0-Is-there-detailed-documentation-on-the/m-p/248226/highlight/true#M4594