Multiprocessing, averaging

do period search with multiprocessing, replace weighted variance calculation for loops with numpy.average, value exceptions for numc.
The highlighting here means that the line has "trailing whitespace", i.e. spaces at the end of the line. It's something to avoid, though by definition it's hard to tell that it's there. Emacs has a command "Alt-x delete-trailing-whitespace" to kill all of it in a file.