This function makes the drone do a flip in one of four directions: forward, backward, left, or right. It's recommended that you wait a few seconds in between successive flips, otherwise the sequence may not appear as expected.
from CoDrone_mini import Direction
drone = CoDrone_mini.CoDrone()
time.sleep(3) # recommended wait time between flips