Added edit_script_to_half_bytes and half_byte_to_char