cbc_template_fir.py: use ChiWai's implementation if pandas is available, default to Chad's implementation