Fix Tap2SnaTest.test_reg() for Python 3