I successfully flashed the device using the tools provided in the BaoFeng Facebook group. I couldn't figure out the Python script, and his logic is that it doesn't flash the hardware version first, but instead upgrades to v2 through software, which then sets the hardware version to 1_0_4.
The tool's name is: BF\_5RH\_Pro\_Tools\_v2.zip, and I was told that it can be easily downgraded or upgraded.
Use the built-in Firmware Tool to upgrade the firmware directly.
Simply re-add it to the dictionary.