fix python code format issue for @TAG_OFFSET@ feature