Part throttle bog then backfire?

Backfiring out the carb is too far retarded timing -- add some advance.

Backfiring out the exhaust is too much timing -- take some out.

Backfiring out the carb is also a lean condition. It would have to be wayyyy out of time to cause it.