'Remove the \'self\' key in locals()
It\'s more explicit to do it in one function'

def _sanitize_locals(self, data):

    if ('self' in data):
        data = data.copy()
        del data['self']
    return data
