old_contents: import datetime
  from subprocess import call
  
  from app import Request, db
  
  COMMAND = "echo"
  
  for request in Request.query.filter(Request.generation_date == None).all():  # noqa
      prompt = "Do you want to generate a certificate for {}, {} ?"
      print(prompt.format(request.id, request.email))
      print("Type y to continue")
      confirm = input('>')
      if confirm in ['Y', 'y']:
          print('generating certificate')
          call([COMMAND, request.id, request.email])
          request.generation_date = datetime.date.today()
          db.session.commit()
          print()
      else:
          print('skipping generation \n')
  
new_contents: #!/bin/env python
  
  import datetime
  from subprocess import call
  
  from app import Request, db
  
  COMMAND = "echo"
  
  for request in Request.query.filter(Request.generation_date == None).all():  # noqa
      prompt = "Do you want to generate a certificate for {}, {} ?"
      print(prompt.format(request.id, request.email))
      print("Type y to continue")
      confirm = input('>')
      if confirm in ['Y', 'y']:
          print('generating certificate')
          call([COMMAND, request.id, request.email])
          request.generation_date = datetime.date.today()
          db.session.commit()
          print()
      else:
          print('skipping generation \n')
  
subject: add shebang