Make uninstall script executable.
Replace hard coded keys by ord().

sed -i "s/49/ord('1')/g" glances.py
sed -i "s/97/ord('a')/g" glances.py
sed -i "s/98/ord('b')/g" glances.py
sed -i "s/99/ord('c')/g" glances.py
sed -i "s/100/ord('d')/g" glances.py
sed -i "s/102/ord('f')/g" glances.py
sed -i "s/104/ord('h')/g" glances.py
sed -i "s/105/ord('i')/g" glances.py
sed -i "s/108/ord('l')/g" glances.py
sed -i "s/109/ord('m')/g" glances.py
sed -i "s/110/ord('n')/g" glances.py
sed -i "s/112/ord('p')/g" glances.py
sed -i "s/115/ord('s')/g" glances.py
sed -i "s/116/ord('t')/g" glances.py
sed -i "s/117/ord('u')/g" glances.py
sed -i "s/119/ord('w')/g" glances.py
sed -i "s/120/ord('x')/g" glances.py
sed -i "s/121/ord('y')/g" glances.py