Fix socket leak in the exporter
Fix socket leak in the exporter

Also fix some pylint warings.

Change-Id: I661a6c86af60788c2dbe4c3db4d698bb8d52dcb2
Reviewed-by: Dave Reeve <6a84ee3ae0690d4584b99406fb3076392171f50e@morganstanley.com>

quattor/aquilon,quattor/aquilon,guillaume-philippon/aquilon,guillaume-philippon/aquilon,guillaume-philippon/aquilon,quattor/aquilon