def list_all_elements(newzip, close=True):
    """Return a list of all elements which are in the archive.
    Usage : list_all_elements(z)
    You need to have a zipfile object opened with read_zip()."""
    data = newzip.namelist()
    if close:
        newzip.close()
    return data