fixed PY2 import error for older versions of six
fixed PY2 import error for older versions of six