ERT-652 Export of GEN_PARAM and refactor of export_panel.py

This PR is ERT-652 Export of GEN_PARAM and refactor of export_panel.py done by iLoop with a minor changed after review added to it.