---
title: Python-SDK - 4.0.0
slug: feature-experimentation/release-notes/python-sdk-4-0-0
docTags: 
createdAt: 2026-07-20T15:45:18.937Z
---

## \[4.0.0] - January 12th, 2022

### New Features

Add a set of new APIs for overriding and managing user-level flag, experiment and delivery rule decisions. These methods can be used for QA and automated testing purposes. They are an extension of the OptimizelyUserContext interface (\[#361]\([https://github.com/optimizely/python-sdk/pull/361](https://github.com/optimizely/python-sdk/pull/361)), \[#365]\([https://github.com/optimizely/python-sdk/pull/365](https://github.com/optimizely/python-sdk/pull/365)), \[#369]\([https://github.com/optimizely/python-sdk/pull/369](https://github.com/optimizely/python-sdk/pull/369))):

- setForcedDecision
- getForcedDecision
- removeForcedDecision
- removeAllForcedDecisions

For details, refer to our documentation pages: \[OptimizelyUserContext]\([https://docs.developers.optimizely.com/full-stack/v4.0/docs/optimizelyusercontext-python](docId\:UGnzh86pPS0MtU91FSSlQ)) and \[Forced Decision methods]\([https://docs.developers.optimizely.com/full-stack/v4.0/docs/forced-decision-methods-python](docId\:EPigw-Nc5Q8TavnThh1hO)).

### Breaking Changes:

- Support for \`Python v3.4\` has been dropped as of this release due to a security vulnerability with \`PyYAML \<v5.4\`.>
- We no longer support \`Python v2.7, v3.5, and v3.6\` including \`PyPy\` as of this release. (\[#377]\([https://github.com/optimizely/python-sdk/pull/373](https://github.com/optimizely/python-sdk/pull/373)))
- We now support \`Python v3.7 and above\` including \`PyPy3\`.

[https://github.com/optimizely/python-sdk/releases/tag/4.0.0](https://github.com/optimizely/python-sdk/releases/tag/4.0.0)
