for x in check.split("\n")[0:len(check.split("\n"))/2:1]:
TypeError: slice indices must be integers or None or have an __index__ method