Rofi logout script for Qtile?

Hello everyone, yesterday i installed BSPWM & then installed Qtile over it. Now I’m using the qtile and rofi powermenu bash script is working for the every other options except for the logout menu cause it was something like “exit bspwm” for the bspwm and i want that for Qtile but Qtile is runs over the python so i couldn’t find any bash command from the docs to logout Qtile.

from the documentation
you can use this command

qtile cmd-obj -o cmd -f shutdown