Switch to Python3. Add simple API for locations.