calcium imaging analysis in python