def __getLocation__(**kwargs):
 global CURRENT_LAT
 global CURRENT_LON
 if (kwargs is not None):
  CURRENT_LAT = kwargs['lat']
  CURRENT_LON = kwargs['lon']

def __getLocation__ ( ** kwargs ) : global CURRENT_LAT global CURRENT_LON if ( kwargs is not None ) : CURRENT_LAT = kwargs [ 'lat' ] CURRENT_LON = kwargs [ 'lon' ]
this function is called by configure for setting current gps location in global variables info: the on_location and on_status callables might be called from another thread than the thread used for creating the gps object .