[python] Test if numpy array contains only zeros