Sorry, I forgot to mention that the crash occurs during the call to python::exec_file().