String formatting fix for python 2.6

* In test_cosmology, use {0:s} instead of {:s} in new-style string
  formatting for py 2.6 compatability.