Remove compatibility mode

We've kept it for long enough. And this will allow us to use functions
in the pep8 module.
Make compatible with Python 2.6
Remove unused function