old_contents: """MediaCrush manage.
  
  Usage:
      mcmanage.py database clear
      mcmanage.py database upgrade
      mcmanage.py admin list
      mcmanage.py admin add <pwhash>
      mcmanage.py admin delete <pwhash>
      mcmanage.py report show
      mcmanage.py report email 
      mcmanage.py files delete <hash>
  """
  
  from docopt import docopt
  
  from mediacrush.mcmanage.database import database_clear, database_upgrade
  from mediacrush.mcmanage.report import report
  from mediacrush.mcmanage.files import files_delete 
  
  from mediacrush.email import send_report
  
  def show_report(args):
      print report()
  
  database_commands = {
      'clear': database_clear,
      'upgrade': database_upgrade,
  }
  
  report_commands = {
      'show': show_report,
      'email': lambda args: send_report(report())
  }
  
  files_commands = {
      'delete': files_delete,
  }
  
  mapping = {
      'database': database_commands,
      'report': report_commands,
      'files': files_commands,
      'admin': None,
  }
  
  def find_true(arguments, mapping_dict):
      return filter(lambda x: x is not None, [item if arguments[item] else None for item in mapping_dict])[0]
  
  if __name__ == '__main__':
      arguments = docopt(__doc__, version='1.0')
      module = find_true(arguments, mapping)
      commands = mapping[module] 
      command = find_true(arguments, commands)
      command = commands[command]
  
      command(arguments)
  
  
new_contents: #!/usr/bin/env python
  """MediaCrush manage.
  
  Usage:
      mcmanage.py database clear
      mcmanage.py database upgrade
      mcmanage.py admin list
      mcmanage.py admin add <pwhash>
      mcmanage.py admin delete <pwhash>
      mcmanage.py report show
      mcmanage.py report email
      mcmanage.py files delete <hash>
  """
  
  from docopt import docopt
  
  from mediacrush.mcmanage.database import database_clear, database_upgrade
  from mediacrush.mcmanage.report import report
  from mediacrush.mcmanage.files import files_delete
  
  from mediacrush.email import send_report
  
  def show_report(args):
      print report()
  
  database_commands = {
      'clear': database_clear,
      'upgrade': database_upgrade,
  }
  
  report_commands = {
      'show': show_report,
      'email': lambda args: send_report(report())
  }
  
  files_commands = {
      'delete': files_delete,
  }
  
  mapping = {
      'database': database_commands,
      'report': report_commands,
      'files': files_commands,
      'admin': None,
  }
  
  def find_true(arguments, mapping_dict):
      return filter(lambda x: x is not None, [item if arguments[item] else None for item in mapping_dict])[0]
  
  if __name__ == '__main__':
      arguments = docopt(__doc__, version='1.0')
      module = find_true(arguments, mapping)
      commands = mapping[module]
      command = find_true(arguments, commands)
      command = commands[command]
  
      command(arguments)
  
  
subject: Add a hashbang to mcmanage.py