setup_screen completed, python 3.1 required.

Regex function re.sub() & re.subn(), flag parameter requires Python 3.1