swap `\"%s\"` for %r and Python will add the quotes for you