Align tick labels
By default, tick labels are aligned towards the axis. This means the set of y tick labels appear right-aligned. Because the alignment reference point is on the axis, left-aligned tick labels would overlap the plotting area. To achieve a good-looking left-alignment, you have to additionally increase the padding.

import matplotlib.pyplot as plt
population = {
"Sydney": 5.2,
"Mexico City": 8.8,