Writing CSV files with NumPy and Pandas