execfile() has been removed from Python 3. The only option available now is exec(), which requires python code as input to execute. The virtualenv string is still kept as a global variable