Update plot_digits_pipe.py

Import statements have been moved to the top of the file.
Merge pull request #2780 from ugurthemaster/patch-1

Update plot_digits_pipe.py