Pythonic way to work with the warning lists.
