Instead of using "string" as a variable name, use something like "template" or "moms_corn_chowder". There's some historical reasons for this, but chief is that "string" is a Python module in the stdlib, so it's best to avoid using it as a variable name.