Looks like some deprecation in python3.11 breaks building the Mame2015 core due to some codegen including python scripts. Upstream has a PR proposed in https://github.com/libretro/mame2015-libretro/pull/98, but not applied, so create one locally.