old_contents: import urwid
  
  class SelectableText(urwid.Text):
      def selectable(self):
          return 1
  
      def keypress(self, size, key):
          return key
  
new_contents: import urwid
  
  class SelectableText(urwid.Text):
      def selectable(self):
          return True
  
      def keypress(self, size, key):
          return key
  
subject: Use True instead of 1