Python in a fixlet is failing on using curly brackets

Yes, there are rules for escaping curly-brackets, otherwise ActionScript attempts to use those as a Relevance substitution. See Tip: Escaping curly brackets for substitutions in ActionScript for examples.