moving write_data2
removing write_data from build path
adding write_data2 SWIG interface