Basically, turns payload that looks like '   \\n  ' to ''. In the 
        calling function, if this function returns '' no object is added 
        for that payload.

def cleanup_payload(self, payload):
        """
        Basically, turns payload that looks like '   \\n  ' to ''. In the 
        calling function, if this function returns '' no object is added 
        for that payload.
        """
        p = payload.replace('\n', '')
        p = p.rstrip()
        p = p.lstrip()
        return p