this is far cleaner code and should work
added prints for testing
fixed output but my print is still jacked up
got it to rpint out a list of the justices
set up what I think will account for transitory years for justices
fixed code to account for justices leaving/joining in the same year

getting closer to correct print screen

Finally got a working script with some data to use