Class name "WindowsForms10.Window.8.***" seems not a standard control's class name and it is undocumented. You may want to consult the developer or supplier of the target program for how to access this control.
UI automation seems a possible solution for you (If this control supports). For how to invoke a button through UI automation you can refer to "Invoke a Control Using UI Automation". Hope this document will guide you find a solution in Python.