sysutils/py-scandir: Fix build with Python 3.9+
PR: 256272 Reported by: John W. O'Brien <john@saltant.com>