Update read_flat_file and write_flat_file
Update read_flat_file and write_flat_file

- adapted read and write flat file functions in optics.py for the new
  syntax exported by trackcpp.

lnls-fac/pyaccel