Make Error behavior consistent across Pythons