Ah, format is a reserved keyword, so I used a trailing underscore, according to PEP8 :)
(Sorry for the late reply!)