simplify geolocation Python
fix issue with tryCatch producing objects of multiple classes