It's python 2.6, so we are fine with catch_warnings