should probably mention, if you're looking for a local solution, there are at least 2 OpenCascade wrappers for python:
CadQuery ( https://github.com/CadQuery/cadquery )
PythonOCC ( https://github.com/tpaviot/pythonocc-core )
CadQuery ( https://github.com/CadQuery/cadquery )
PythonOCC ( https://github.com/tpaviot/pythonocc-core )