Make __str__ conditional on PY2