Update lpsat.py

Changed range(1, 254) to range(1, 255) since range() is non-inclusive.