Here is a diagram of the main classes on the GDB python API. Since there are quite a few classes it is useful to know where to find a given feature. If you go over to my github you can find a simple example of a color prompt for gdb using the python API.