updated to PY3