pagination: use %s string formatting approach for python 2.6