Schwinger terms and cohomology of pseudodifferential operators