Fix minecraft_ping legacy for python 3