Can we instead split this like:

    template = '%(APP)s-%(VERSION)s-%(BUILD)s.%(LOCALE)s' \
               '.%(PLATFORM)s.%(EXT)s'