Applying upstream commit https://github.com/systemd/python-systemd/commit/c71bbac357f0ac722e1bcb2edfa925b68cca23c9 to the python-systemd fixes this bug.