[gdb] Make config work with Python 3