From Fedora Project Wiki
GCC Python Plugins
GCC plugins that embed Python 2 and Python 3 are now available, enabling developers to more easily hook into GCC's inner workings. For example, new compiler warnings can now be written in Python, without needing to deal with the C internals of GCC. These were written by Fedora contributor David Malcolm.