I think there are easier ways in python to read a file linewise, but that can easily be fixed