Sounds like pcbasic, that implements GW-BASIC in python, both with a SDL GUI and a TUI, and it contains a partial PC emulator to make it possible to peek and poke some addresses and such. Impressive project, well documented and seems stable and nothing obvious is missing.