[ASDL cleanup] Add type annotations, mostly to gen_python.py