getting country population data from freebase:
from freebase.api import HTTPMetawebSession, MetawebError
mss = HTTPMetawebSession('www.freebase.com')
list(mss.mqlread([{'name': None, 'type': '/location/country', '/location/country/iso3166
1
alpha2' : None, '/location/statistical_region/population' : [{'number': None}] }]))