Python 3 compatibility of from_ieee_block