Further style changes to length.py