I want to read in python from stdin and it looks like this:
(Group),(Grade):
1gT,8
1gT,5
1gT,9
1gX,4
1gX,7