What the linked article makes clear is that:
1. GDB can use extension scripts written in Python 2. some extensions are available to help debug the C code of the Python interpreter while its interpreting other Python scripts
Not that GDB by itself supports debugging python scripts.