If you encounter the following error

_tkinter.TclError: unknown color name "BACKGROUND"

or similar ones when using tkinter or matplotlib packages from Python (currently affecting only NX users connecting from specific hosts), you can try to run the following command:

xrdb -load /dev/null