Make the core game Python3-friendly.