I finally got it to work using what you said.
It's kind of annoying having to have place the libraries in with the .cap though. The email.Generators errors aren't stopping it from working so I guess those aren't important. I think I'll attempt to get numpy in, but I'll probably need help. Thanks a lot for all your help!
Edit: I have no idea where to start. I downloaded a .zip file and I'm not sure what to do after that. There's a lot of files.
Edit 2: I just put import numpy into the test.py. Will this work? It made a library.