1. class First(object):
  2. def __init__(self):
  3. print "first prologue"
  4. super(First, self).__init__()
  5. print "first epilogue"
  6.  
  7. class Second(First):
  8. def __init__(self):
  9. print "second prologue"
  10. super(Second, self).__init__()
  11. print "second epilogue"
  12.  
  13. class Third(First):
  14. def __init__(self):
  15. print "third prologue"
  16. super(Third, self).__init__()
  17. print "third epilogue"
  18.  
  19. class Fourth(Second, Third):
  20. def __init__(self):
  21. super(Fourth, self).__init__()
  22. print "that's it"
  23.  
  24. Fourth()