Fix Python API

Merged Aaron Bray requested to merge feature/python_update into 4.x

Merge request reports