Fixed bug caused by old python version.
Old python version doesn't support {} in template statements, so replaced it with {0}