def read_forward(handle):
 while True:
  line = handle.readline()
  if ((not line) or (line and line.strip())):
   return line

def read_forward ( handle ) : while True : line = handle . readline ( ) if ( ( not line ) or ( line and line . strip ( ) ) ) : return line
reads through whitespaces .