To use Google Maps API for distance calculation in Python, you need to first create a project in the Google Cloud Platform Console, enable the Google Maps JavaScript API and obtain an API key. Then, you can use the `googlemaps` library in Python along with the `distance_matrix()` method to calculate the distance between two points.

Here's an example code using the `googlemaps` library:

```
import googlemaps

# Enter your API key here
api_key = 'YOUR_API_KEY'

# Define the client
client = googlemaps.Client(api_key)

# Define the origins and destinations
origins = (lat1, long1)
destinations = (lat2, long2)

# Call the distance_matrix method to get the distance
result = client.distance_matrix(origins, destinations)

# Extract the distance value
distance = result['rows'][0]['elements'][0]['distance']['value']

# Convert the distance to miles
distance_miles = distance * 0.000621371

# Print the result
print("The distance between the two points is: ", distance_miles, "miles")
```

Remember to replace 'YOUR_API_KEY' with your actual API key obtained from the Google Cloud Platform Console.
Voglio utilizzare l'API di Google per google maps in Python. Voglio scoprire la distanza tra due punti (lat1, long1) e (lat2, long2).