Changes for python3 compatibiltity with ioflo