Backport of "python: Avoid warning about using deprecated methods" into 1.16
requested to merge tpm/gst-editing-services:backport-mr-72-into-1.16-python_deprecated_warning into 1.16
Backport of !72 (merged) "python: Avoid warning about using deprecated methods".
Commits:
- 4ded3b88 python: Avoid warning about using deprecated methods