fix regexp str for Py3