PEP8 compliance, preparations for Python 3 support, &c.

- Removed some stuff: fintl, ncurses. Rely on stdlib instead.
- use raw strings for regular expressions
- proper conditionals instead of "X and Y or Z" expressions.
- one statement per line, space around operators, &c.
- pylint score of 7.79
- applied all 2to3 suggestions (but issues with bytes vs. strings in Py3)