I've seen many keyboard PCBs support configuration with firmware such as QMK.
(The wiki for the MechanicalKeyboards subreddit mentions other examples of firmware
https://www.reddit.com/r/MechanicalKeyboards/wiki/firmware).
If you're comfortable with C (and setting up the toolchain in the right way), great.
Allowing customisation with Python is for greater accessibility.