functions/location.py: Add ability to log location data