Update glances.py

add manage keyboard for terminal windows
add correction for multicpu