More Py3k compatibilities.