Update plot_digits_pipe.py

Import statements have been moved to the top of the file.