Script dividers, reworking legend formatting

to better conform to PEP 8, and so there aren't so many spaces.