Added write_file to jcpds.py