cad/freecad: fix for python 3.8
PR: 248153 Submitted by: Greg V Obtained from: https://github.com/FreeCAD/FreeCAD/commit/6eacb17b3e03d20