Hi BigBoy25,
I just saw your post above. I used a Raspberry Pi 4 and ran his Python code on Thonny. His code examples work well; the Pi's Bluetooth LE pairs automatically with the loco, with his code. I wish I better understood Python code. Not as easy as Arduino code!
Take care, Joe