Attempt at basic Py3k compatibility