MAINT: python3 does not have StandardError