I found the solution to this problem, for further issues that may come to anyone, here is the answer:
you should copy and paste the “UnRAR” file (which can be found in this path C:\Program Files (x86)\WinRAR) into the workflow folder in knime-workspace, in this scenario your python snippet can find the executable RAR file.