Line 512 should be testing for the existence of `metric_octopus_export`, not `metric_octopus_import`: `if 'metric_octopus_export' in self.args:` instead of `if 'metric_octopus_import' in self.args:`