Adds python3 fixes for TXTRecords