Add ridiculous setup.py, tweak some generation