Python User Interface Manager for terminal applications