3d Connected Components Python