old_contents: @requires_authorization
  def somefunc(param1='', param2=0):
      r'''A docstring'''
      if param1 > param2: # interesting
          print 'Gre\'ater'
      return (param2 - param1 + 1) or None
  
  class SomeClass:
      def cats(arg):
          abc = 1
          deg = [1, 2, '3']
  
      def another(arg):
          pass
  
  >>> message = '''interpreter
  ... prompt'''
  
new_contents: 
  # 1. Example ------------------------
  
  import unittest
  def median(pool):
      copy = sorted(pool)
      size = len(copy)
      if size % 2 == 1:
          return copy[(size - 1) / 2]
      else:
          return (copy[size/2 - 1] + copy[size/2]) / 2
  class TestMedian(unittest.TestCase):
      def testMedian(self):
          self.failUnlessEqual(median([2, 9, 9, 7, 9, 2, 4, 5, 8]), 7)
  if __name__ == '__main__':
      unittest.main()
  
  
  # 2. Tests ------------------------
  
  @requires_authorization
  def somefunc(param1='', param2=0):
      r'''A docstring'''
      if param1 > param2: # interesting
          print 'Gre\'ater'
      return (param2 - param1 + 1) or None
  
  class SomeClass:
      def cats(arg):
          abc = 1
          deg = [1, 2, '3']
  
      def another(arg):
          pass
  
  >>> message = '''interpreter
  ... prompt'''
  
subject: Update Python