Compatability wrapper for Agents that do not submit gauge metrics with custom timestamps

def gauge(self, *args, **kwargs):
        """
        Compatability wrapper for Agents that do not submit gauge metrics with custom timestamps
        """
        orig_gauge = super(Nagios, self).gauge
        # remove 'timestamp' arg if the base class' gauge function does not accept a 'timestamp' arg
        if 'timestamp' in kwargs and 'timestamp' not in getargspec(orig_gauge).args:
            del kwargs['timestamp']

        orig_gauge(*args, **kwargs)