A python wrapper for the WorldPop API, that can give your population, population rank, population change, and density of countries.
Installation:
pip3 install worldpops
Get population:
country_info.population('{country name}')
All capabilities: https://github.com/gadhagod/worldpops/