ENH: add a class to extract numpy arrays