Python 3 related test fix.