changed to use getattr for GOOGLE_API_KEY