new_contents: #!/usr/bin/env python3
  """
  This script solves all challenges from www.pythonchallenge.com
  Created by Pawel Chiberski
  """
  import os, sys
  
  # Decorator for challenges functions
  challenges = {}
  def challenge(n):
    def decorator(f):
      def wrapper(*args, **kwargs):
        print('')
        print('######################')
        print('# Begin challenge %s #' % format(n, '02d'))
        print('######################')
        f(*args, **kwargs)
      challenges[n] = wrapper
      return wrapper
    return decorator
  
  # Challenges code will go here
  
  if __name__ == '__main__':
    to_run = sorted(challenges.keys())
    if len(sys.argv) > 1:
      try:
        n = int(sys.argv[1])
      except ValueError:
        print('Usage: %s [n] (where n is an integer)' % sys.argv[0])
        sys.exit(1)
      if not n in challenges:
        print('No such challenge: %d' %n)
        sys.exit(1)
      to_run = [n]
    for n in to_run:
      challenges[n]()
  
subject: Create base for solver