Use python safe code filter for virtualenv calls
Merge pull request #15637 from thatch45/safe_virtualenv

Make sure exec_code calls are safe