Is there enough light in place where you are flying the drone. Tello drone makes use of VPS(vision positioning system) to hover. VPS combines ultrasonic sensors with visual motion sensing using visual contrast to help stabilize the aircraft at lower altitudes. Without enough light it can't do that, hence the drift in your hover.
Same goes for other features like flip.
I've made a software using Python, JS and the DJITelloPy Library, for Tello drone. It enhances your drone's ability by adding on some of the most sought AI features, like Object Detection, Human Pose Estimation and Voice Commands, to your Tello Drone. You can check it out at www.aidronesoftware.com.
You can download the software for free (limited time offer) using this LINK, after signing up.