ANSI cursor movement and graphics in Python