shiboken: Made compatible with older python3 versions.