Hi Pruva,
I’m exposing the Python functions/logic using REST that I consume in Mendix. I used to run the code on a dedicated server, but you should have a look at https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html and the Mendix Lamba connector: https://marketplace.mendix.com/link/component/204511
For your second question, I would advise using the Java Actions with this library. https://developers.google.com/people/quickstart/java
Go make it
For your second question, you can also look at using Mendix’s built in REST consume functionality to talk to the Google People API if you don’t feel comfortable integrating with Java.
https://developers.google.com/people/v1/contacts#protocol
I hope this helps.