Remove depreciated use of BaseException.message.

Change-Id: I1643bcc5f23bd61eb295f538bc4a1772fd3d7a75
Remove depreciated use of django.utils.hashcompat.

Change-Id: I9bec441130376226ce47625cd74367a88bb554a5