Python str.format and %

Signed-off-by: apporc <appleorchard2000@gmail.com>