Everything in SymPy inherits from `Basic`.  For example Quantum operators or MatrixExpressions inherit from Basic.  We don't want them to use this function.  

Instead, why don't you change this to `Expr`.  `Expr` is a very general class for all scalar expressions.