fixed PY2 error for older versions of six