added support to hide-show-mode foir python