# install
pip install geopy
# import
from geopy.geocoders import Nominatim
# code
app = Nominatim(user_agent="test")
address = "First St SE, Washington, DC 20004, United States"
location = app.geocode(address).raw
location['lat'], location['lon']
>>> ('38.8716329', '-77.005766')