old_contents: import serial
  
  class iButton(object):
  
      def __init__(self, ibutton_address, rfid_address, debug=False):
          # self.ibutton_serial = serial.Serial(ibutton_address)
          self.rfid_serial = serial.Serial(rfid_address)
          self.debug = debug
  
      def read(self):
          if self.debug:
              with open("ibutton.txt") as ibutton_file:
                  return ibutton_file.readline().strip()
          code = ''
          while True:
              byte = self.rfid_serial.read()
              if len(code)==12:
                  return code
              code += byte
              print("Reading ID: %s" % code)
  
new_contents: import serial
  
  class iButton(object):
  
      def __init__(self, ibutton_address, rfid_address, debug=False):
          # self.ibutton_serial = serial.Serial(ibutton_address)
          self.rfid_serial = serial.Serial(rfid_address)
          self.debug = debug
  
      def read(self):
          if self.debug:
              with open("ibutton.txt") as ibutton_file:
                  return ibutton_file.readline().strip()
          code = ''
          while True:
              byte = self.rfid_serial.read()
              if byte == ' ':
                  continue
              if len(code)==12:
                  return code
              code += byte
              print("Reading ID: %s" % code)
  
subject: Fix RDID reading code to ignore leading space