change func write_libsvm, add func write_tab, and change some sys.exit(error_info).