Hi Folks,
Earlier this month, I finished my code for ESP32 and LionChief, which uses the Arduino IDE and code (not Python):
My code here:
https://www.josephrampolla.com/ESP32LionChief.html
You have to modify the code with 3 pieces of info unique to your loco, process in my vid.
The ESP32 has built-in Bluetooth, both classic and low energy, and WiFi.
Hope this helps like-minded hobbyists!
Take care, and a Blessed New Year, Joe.