improved handling of python script in Pyp.cpp, retrieving vector of plotted files from plot() function