Made string formatting compatible with pre-2.7 python.