pyqi commands and middleware for QiiTa