python/pso tests: use string .format() style rather than C-style %s/%d.