I am having trouble getting the printed output of a python script into a data frame. When I execute the script the information I want in the data frame prints, but the script