Boolean addition and multiplication raises error

#8441 
True and False are not sympy's booleans.