Some py3k compat.