Rewrite csvlib to use numpy's R&W methods