made changes to the assignment of _isOpen and used the PythonOps.TryGetBoundAttr