warn on exceptions in python tests