Lots of bug fix for improve_ast.py.
Now it can process all .py files in the standard Python distro.