On the cohomology of homogeneous spaces