@staticmethod
def sanitize(input, allowable_list=[], default="''"):
    """
        Sanitize inputs to avoid issues with pymysql.

        Takes in an input to sanitize.
        Optionally takes in an list of allowable values and a default.
        The default is returned if the input is not in the list.
        Returns a sanizized result.
        """
    if input in allowable_list or allowable_list == []:
        return input
    else:
        return default
