old_contents: '''
      Script to convert CONTCAR to .xsd file
  '''
  from vaspy.matstudio import XsdFile
  from vaspy.atomco import PosCar
  
  status, output = commands.getstatusoutput('ls *.xsd | head -1')
  xsd = XsdFile(filename=output)
  poscar = PosCar(filename='CONTCAR')
  xsd.data = poscar.data
  
  jobname = output.split('.')[0]
  xsd.tofile(filename=jobname+'-y.xsd')
  
new_contents: '''
      Script to convert CONTCAR to .xsd file
  '''
  import commands
  from vaspy.matstudio import XsdFile
  from vaspy.atomco import PosCar
  
  status, output = commands.getstatusoutput('ls *.xsd | head -1')
  xsd = XsdFile(filename=output)
  poscar = PosCar(filename='CONTCAR')
  xsd.data = poscar.data
  
  jobname = output.split('.')[0]
  xsd.tofile(filename=jobname+'-y.xsd')
  
subject: fix bug