The addresses are now returned as hex from the JS side. Conversion to int on Python side now takes account of this.