Geographical work in Python