added the command line to choose export format (PDF, OpenOffice or MS Office)

The export_format dictionary was actually defined without the command line being usable. 

It needed to be defined after argv = FLAGS(argv) being called. So I transformed the dictionary into a "export_type" function, which is meant to be called where the export_format dictionary is necesary.