assertion reporting hooks now use python functions