python extract data from file,"file = codecs.open(filename, encoding='utf-8')"