Ensure SYMPY_DEBUG env variable contains only True or False

Evaluating it unchecked is an unlikely yet possible vector of attack,
e.g. one can gain root privileges if there's a script importing sympy
with setuid bit on it.