pip is a a package manager for Python like Perl's CPAN
To install it follow the following steps
Download ez_setup from https://pypi.python.org/pypi/setuptools#installation-instructions
Then run it to install setup tools and easy_install depending on your OS and your python version.
For version 2.x I do:
python ez_setup.py
For version 3.x
python3 ez_setup.py
Then download pip by running it in each version directory
easy_install pip
To enable an curses screen to display on a terminal window in X use the getch() method on the screen variable eg:
stdscr.getch()