backport fstrings
fix syntax errors
Merge pull request #3 from github/fstr

Backport frozen strings from trunk