import pickle

class Entity:
	def __init__(self):
		self.name = 
	def printName(self):
		print self.name

class Person(Entity): 
	def __init__(self): 
		self.name =  

instance1 = Person()
instance1.printName()

instance2 = Entity()
instance2.printName()

target = file(, ) 


pickle.dump((instance1, instance2), target) 
target.close() 
print 


target = file() 
i1, i2 = pickle.load(target)
print 

i1.printName()
i2.printName()