[IMP] Change "raise Warning" by "raise UserError" to avoid collision with the builtin python Warning.