how do i remove \n from my python dictionary?,"x = line.rstrip('\n').split(',')"