Add Python2 workaround.