def keys_with_suffix(self, suffix):
        """
        :return: list of keys ending with given :suffix:.
        """
        return [k.rstrip(suffix) for k in self.keys() if k.endswith(suffix)]
def keys_with_suffix ( self , suffix ) : return [ k . rstrip ( suffix ) for k in self . keys ( ) if k . endswith ( suffix ) ]
:return: list of keys ending with given :suffix:.