It works...just writing a couple for the test suite
Looks ok to me, let's get it into the 5.1 beta and see if it works :)
(with added test)
https://commits.kde.org/kdev-python/8dce437aeca5ce5f51c1cd9c240732f47066fccf