how to check for eof in python?,"return re.split(seperator, f.read())"