Python 3 fixes. Incoming payment handling fixes.