fixed PY3 condition