def toFile(filename, data):
 f = open(filename, 'w')
 cPickle.dump(data, f)
 f.close()

def toFile ( filename , data ) : f = open ( filename , 'w' ) cPickle . dump ( data , f ) f . close ( )
save data as a pickle file .