Add calc_weights.py, which is a wrapper for our existing functions designed to call the scipy.optimize optimization function.  Currently gives an error.