old_contents: def has_manage_schedule_permission(user, event):
      if user.is_superuser:
          return True
      else:
          return event.user_in_jury(user)
  
new_contents: def has_manage_schedule_permission(user, event):
      return user.is_superuser or event.user_in_jury(user)
  
subject: Use single return statement