Tools for z-stack analysis in python