This is a package for connecting to the Tesla API.
from tesla_api import TeslaApiClient
client = TeslaApiClient('[email protected]', 'yourPassword')
vehicles = client.list_vehicles()
for v in vehicles:
print(v.vin)
v.controls.flash_lights()