Query to the Freebase using python