Wrapped log/lincal into one python function redcal.  added basic unittest and it passes.