def copy_local(data, dest, use_put=None):
 dpath = os.path.dirname(dest)
 if (not os.path.isdir(dpath)):
  os.makedirs(dpath)
 if use_put:
  open(dest, 'ab').write(data)
 else:
  open(dest, 'a').write(('%s %s\n' % (time.time(), data)))

def copy_local ( data , dest , use_put = None ) : dpath = os . path . dirname ( dest ) if ( not os . path . isdir ( dpath ) ) : os . makedirs ( dpath ) if use_put : open ( dest , 'ab' ) . write ( data ) else : open ( dest , 'a' ) . write ( ( '%s %s\n' % ( time . time ( ) , data ) ) )
copy data locally to a file to aid in debugging .