Editing arrays to NumPy arrays