geolocalized-tasks: fix mistakes in api.py