use dict constructor instead of dict comprehension

dict comprehension is not supported in python 2.6
support wrap a Query in ConstantScoreQuery

See http://www.elasticsearch.org/guide/reference/query-dsl/constant-score-query.html