Support for checking Python brace format string

Fixes #345