old_contents: '''
  Created on 20 Apr 2010
  
  @author: Chris Filo Gorgolewski
  '''
  import ConfigParser, os
  from io import StringIO
  
  default_cfg = StringIO("""
  [logging]
  workflow_level = INFO
  node_level = INFO
  filemanip_level = INFO
  
  [execution]
  stop_on_first_crash = false
  hash_method = content
  """)
  
  config = ConfigParser.ConfigParser()
  config.readfp(default_cfg)
  config.read(['nipype.cfg', os.path.expanduser('~/.nipype.cfg')])
  
  
new_contents: '''
  Created on 20 Apr 2010
  
  @author: Chris Filo Gorgolewski
  '''
  import ConfigParser, os
  from StringIO import StringIO
  
  default_cfg = StringIO("""
  [logging]
  workflow_level = INFO
  node_level = INFO
  filemanip_level = INFO
  
  [execution]
  stop_on_first_crash = false
  hash_method = content
  """)
  
  config = ConfigParser.ConfigParser()
  config.readfp(default_cfg)
  config.read(['nipype.cfg', os.path.expanduser('~/.nipype.cfg')])
  
  
subject: Use StringIO.StringIO instead of the io.StringIO.