Fix for PY3.