bug fix in showing NULL PyErrors (should not normally happen), and slight cleanup