code: def __read_byte_offset(decl, attrs):
          
          offset = attrs.get(XML_AN_OFFSET, 0)
          # Make sure the size is in bytes instead of bits
          decl.byte_offset = int(offset) / 8
docs: Using duck typing to set the offset instead of in constructor