old_contents: from gpiozero import Button
  button = Button(17)
  while True:
      if button.is_pressed:
          print("Button is pressed")
      else:
          print("Button is not pressed")
  
  
  # channel_list = [17, 22, 23, 27]
  
new_contents: from gpiozero import Button
  
  
  def update():
      print("Update")
  
  class GPIO_Buttons:
      def __init__(self, pin, callback=none):
          self.b = Button(pin)
          self.b.when_released = callback
  
  
  update = GPIO_Buttons(17, update)
  
  while True:
      pass
  
  
  # channel_list = [17, 22, 23, 27]
  
subject: update script