PY3K: create genfromstr utility