py3k safe