Multiprocessing, averaging

do period search with multiprocessing, replace weighted variance calculation for loops with numpy.average, value exceptions for numc.
Could skip the temporary variable here:

```python
thetas = np.array (pool.map (lambda x: one_theta (*x), args))
```

(This also shows what I was talking about above with the lambda expression.)