Added a check for the pandas function. If it's not installed the print function won't work, but everything else should run properly.