redundant import
Unnecessary globals
Refactor curors/texts into single class with binding methods
type -> isinstance
Remove pointless class
list -> dict