Python state improvements

Backport: release

Edited by Andrew Bauer

Merge request reports

Loading