Expose an `activate` method in the python environments api.
Expose an
activatemethod in the python environments api.