Added yield statement for non-coordinate lines
Corrected sys.stderr.write usages