<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def set_cores_massive(self,filename='core_masses_massive.txt'):

		'''
			Uesse function cores in nugridse.py
		'''
		
		core_info=[]
		minis=[]
                for i in range(len(self.runs_H5_surf)):
                        sefiles=se(self.runs_H5_out[i])
			mini=sefiles.get('mini')
			minis.append(mini)
			incycle=int(sefiles.se.cycles[-1])
			core_info.append(sefiles.cores(incycle=incycle))
		print_info=''
                for i in range(len(self.runs_H5_surf)):
			if i ==0:
				print 'Following returned for each initial mass'
				print core_info[i][1]
                        #print '----Mini: ',minis[i],'------'
			print_info+=(str(minis[i])+' & ')
			info=core_info[i][0]
			for k in range(len(info)):
				print_info+=('{:.3E}'.format(float(core_info[i][0][k]))+' & ')
			print_info=(print_info+'\n')
			#print core_info[i][2]
		f1=open(filename,'a')
		f1.write(print_info)
		f1.close()