Don't evaluate arbitrary text coming from SYMPY_DEBUG variable

With all the talks about recent shellshock vulnerability discovery in
Bash I've remembered encountering similar unguarded execution of
arbitrary text coming from the environment in sympy.  It is not that
critical, but it may be used to gain root privileges if there's a
script importing sympy with setuid bit on it:

```
$ SYMPY_DEBUG='os.sys.stdout.write("Hello\n")' python -c 'import sympy'
Hello
Hello
```

This PR should fix the issue.

I'm not sure where to put tests for it, though, as there's no test
suite in the root directory, maybe into `sympy.core`?
It's not about knowledge, it's about attention. `rm -rf` is also well documented, but you better double check you don't have extra spaces in the path to avoid [removing /usr](https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac#diff-3fbb47e318cd8802bd325e7da9aaabe8L351) in uninstall scripts.