KeyError when using gps coordinates as key fixed when