pip install tellolib
or
pip3 install tellolib
from tellolib import tello
tello = tello.Tello(1111) # 1111 specifies the UDP port that the server that communicates with the tello binds to
tello.connect() # connects to tello
tello.takeoff()
tello.forward(20)
tello.land()