I think that is going in the right direction.  How about: "We first import two libraries: NumPy for array manipulation and matplotlib for plotting."