Began work on lb.py. Fixed a bunch of dopey details in a couple other files.