def _clean_params(self, params):
        """Removes parameters whose values are set to None.
        """
        clean_params = {}
        for key, value in params.iteritems():
            if value is not None:
                clean_params[key] = value

        return clean_params
Removes parameters whose values are set to None.