def _fix_fill(fill):
 if (LooseVersion(scipy.__version__) < LooseVersion('0.12')):
  fill = fill[:, np.newaxis]
 return fill

def _fix_fill ( fill ) : if ( LooseVersion ( scipy . __version__ ) < LooseVersion ( '0.12' ) ) : fill = fill [ : , np . newaxis ] return fill
helper to fix bug on old scipy .